mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
bug: lvol fail when LV already exists (#23635)
This commit is contained in:
parent
b3a90253fc
commit
050de6d6b5
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ def main():
|
||||||
else:
|
else:
|
||||||
check_lv = snapshot
|
check_lv = snapshot
|
||||||
for test_lv in lvs:
|
for test_lv in lvs:
|
||||||
if test_lv['name'] == check_lv:
|
if test_lv['name'] in (check_lv, check_lv.rsplit('/', 1)[-1]):
|
||||||
this_lv = test_lv
|
this_lv = test_lv
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue