From f2c4875fbe992471f4ed512f4f2b93b2fe2b1e37 Mon Sep 17 00:00:00 2001 From: Simon Dodsley Date: Tue, 27 Aug 2019 01:27:59 -0400 Subject: [PATCH] Remove unnecessary code (#61350) --- lib/ansible/modules/storage/purestorage/purefa_offload.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/modules/storage/purestorage/purefa_offload.py b/lib/ansible/modules/storage/purestorage/purefa_offload.py index 4814131fd49..c6846da330b 100644 --- a/lib/ansible/modules/storage/purestorage/purefa_offload.py +++ b/lib/ansible/modules/storage/purestorage/purefa_offload.py @@ -139,7 +139,6 @@ def create_offload(module, array): module.fail_json(msg='Offload Network interface not enabled. Please resolve.') except Exception: module.fail_json(msg='Offload Network interface not correctly configured. Please resolve.') - ra_facts = {} if module.params['protocol'] == 'nfs': try: array.connect_nfs_offload(module.params['name'], @@ -161,7 +160,7 @@ def create_offload(module, array): except Exception: module.fail_json(msg='Failed to create S3 offload {0}. ' 'Please perform diagnostic checks.'.format(module.params['name'])) - module.exit_json(changed=changed, ansible_facts=ra_facts) + module.exit_json(changed=changed) def update_offload(module, array):