mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Fixes bug where state=absent did not work
This commit is contained in:
committed by
Matt Clay
parent
c8c4305057
commit
af51a50863
@@ -356,7 +356,9 @@ def main():
|
||||
# do the work!
|
||||
if action == 'absent':
|
||||
if volume_name in volumes:
|
||||
run_gluster([ 'volume', 'delete', name ])
|
||||
if volumes[volume_name]['status'].lower() != 'stopped':
|
||||
stop_volume(volume_name)
|
||||
run_gluster_yes([ 'volume', 'delete', volume_name ])
|
||||
changed = True
|
||||
|
||||
if action == 'present':
|
||||
|
||||
Reference in New Issue
Block a user