diff --git a/lib/ansible/modules/storage/glusterfs/gluster_volume.py b/lib/ansible/modules/storage/glusterfs/gluster_volume.py index b13d0189d9d..2ded4d03e6a 100644 --- a/lib/ansible/modules/storage/glusterfs/gluster_volume.py +++ b/lib/ansible/modules/storage/glusterfs/gluster_volume.py @@ -499,7 +499,7 @@ def main(): else: module.fail_json(msg='failed to create volume %s' % volume_name) - if action != 'delete' and volume_name not in volumes: + if action != 'absent' and volume_name not in volumes: module.fail_json(msg='volume not found %s' % volume_name) if action == 'started':