Merge pull request #409 from Jmainguy/glusterfs

Fixes bug where state=absent did not work in gluster_volume
This commit is contained in:
Brian Coca 2015-04-19 23:50:21 -04:00
commit b870126f4b

View file

@ -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':