From 05afc28d08d907e05b4869305661c200eed39551 Mon Sep 17 00:00:00 2001 From: Simon Dodsley Date: Tue, 27 Aug 2019 18:00:01 -0400 Subject: [PATCH] Changes references to ansible_facts (FB_S3USER) (#61356) --- .../61356-purefb_s3user_change_facts_to_s3user_info.yaml | 2 ++ lib/ansible/modules/storage/purestorage/purefb_s3user.py | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 changelogs/fragments/61356-purefb_s3user_change_facts_to_s3user_info.yaml diff --git a/changelogs/fragments/61356-purefb_s3user_change_facts_to_s3user_info.yaml b/changelogs/fragments/61356-purefb_s3user_change_facts_to_s3user_info.yaml new file mode 100644 index 00000000000..a6e7261f6ea --- /dev/null +++ b/changelogs/fragments/61356-purefb_s3user_change_facts_to_s3user_info.yaml @@ -0,0 +1,2 @@ +minor_changes: + - purefb_s3user - change resulting fact dict from I(ansible_facts) to I(s3user_info) (https://github.com/ansible/ansible/pull/61356) diff --git a/lib/ansible/modules/storage/purestorage/purefb_s3user.py b/lib/ansible/modules/storage/purestorage/purefb_s3user.py index f70e97c4330..3602faa3a06 100644 --- a/lib/ansible/modules/storage/purestorage/purefb_s3user.py +++ b/lib/ansible/modules/storage/purestorage/purefb_s3user.py @@ -52,9 +52,10 @@ EXAMPLES = r''' account: bar fb_url: 10.10.10.2 api_token: e31060a7-21fc-e277-6240-25983c6c4592 + register: result - debug: - var: ansible_facts.fb_s3user +- debug: + msg: "S3 User: {{ result['s3user_info'] }}" - name: Delete object store user foo in account bar purefb_s3user: @@ -120,7 +121,7 @@ def update_s3user(module, blade): delete_s3user(module, blade) module.fail_json(msg='Object Store User {0}: Creation failed'.format(user)) changed = True - module.exit_json(changed=changed, ansible_facts=s3user_facts) + module.exit_json(changed=changed, s3user_info=s3user_facts) def create_s3user(module, blade): @@ -143,7 +144,7 @@ def create_s3user(module, blade): changed = True except Exception: module.fail_json(msg='Object Store User {0}: Creation failed'.format(user)) - module.exit_json(changed=changed, ansible_facts=s3user_facts) + module.exit_json(changed=changed, s3user_info=s3user_facts) def delete_s3user(module, blade):