Fix incorrect bool check in Pure Storage modules (#28007)
This commit is contained in:
parent
f4e93ccc1a
commit
e7b0849886
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue