mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
bug: lvol fail when LV already exists (#23635)
This commit is contained in:
committed by
ansibot
parent
b3a90253fc
commit
050de6d6b5
@@ -360,7 +360,7 @@ def main():
|
||||
else:
|
||||
check_lv = snapshot
|
||||
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
|
||||
break
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user