From 4420e4c3cd511ec89db23b5e8cc596b10132c69c Mon Sep 17 00:00:00 2001 From: Simon Dodsley Date: Wed, 24 Oct 2018 09:42:42 -0400 Subject: [PATCH] Bug fix for purefb_fs to stop incorrect filesystem eradication (#47561) --- lib/ansible/modules/storage/purestorage/purefb_fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/storage/purestorage/purefb_fs.py b/lib/ansible/modules/storage/purestorage/purefb_fs.py index f377889ff61..8addc539bda 100644 --- a/lib/ansible/modules/storage/purestorage/purefb_fs.py +++ b/lib/ansible/modules/storage/purestorage/purefb_fs.py @@ -329,7 +329,7 @@ def main(): modify_fs(module, blade) elif state == 'absent' and fs and not fs.destroyed: delete_fs(module, blade) - elif state == 'absent' and fs and fs.destroyed: + elif state == 'absent' and fs and fs.destroyed and module.params['eradicate']: eradicate_fs(module, blade) elif state == 'absent' and not fs: module.exit_json(changed=False)