Fix incorrect bool check in Pure Storage modules (#28007)

This commit is contained in:
Simon Dodsley 2017-08-17 13:35:52 -04:00 committed by Toshio Kuratomi
parent f4e93ccc1a
commit e7b0849886
2 changed files with 2 additions and 2 deletions

View file

@ -162,7 +162,7 @@ def delete_pgroup(module, array):
changed = True
if not module.check_mode:
array.destroy_pgroup(module.params['pgroup'])
if module.params['eradicate'] == 'true':
if module.params['eradicate']:
array.eradicate_pgroup(module.params['pgroup'])
module.exit_json(changed=changed)

View file

@ -141,7 +141,7 @@ def delete_volume(module, array):
""" Delete Volume"""
if not module.check_mode:
array.destroy_volume(module.params['name'])
if module.params['eradicate'] == 'true':
if module.params['eradicate']:
array.eradicate_volume(module.params['name'])
module.exit_json(changed=True)