From 948023176ee3ec49d60f7cdb8baea3058bc99547 Mon Sep 17 00:00:00 2001 From: Simon Dodsley Date: Tue, 27 Aug 2019 18:00:12 -0400 Subject: [PATCH] Changes references to ansible_facts (FA_RA) (#61355) --- .../fragments/61355-purefa_ra_change_facts_to_ra_info.yaml | 2 ++ lib/ansible/modules/storage/purestorage/purefa_ra.py | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 changelogs/fragments/61355-purefa_ra_change_facts_to_ra_info.yaml diff --git a/changelogs/fragments/61355-purefa_ra_change_facts_to_ra_info.yaml b/changelogs/fragments/61355-purefa_ra_change_facts_to_ra_info.yaml new file mode 100644 index 00000000000..323f1bb6fee --- /dev/null +++ b/changelogs/fragments/61355-purefa_ra_change_facts_to_ra_info.yaml @@ -0,0 +1,2 @@ +minor_changes: + - purefa_ra - change resulting fact dict from I(ansible_facts) to I(ra_info) (https://github.com/ansible/ansible/pull/61355) diff --git a/lib/ansible/modules/storage/purestorage/purefa_ra.py b/lib/ansible/modules/storage/purestorage/purefa_ra.py index 37f6e74e8fe..c9f53212f47 100644 --- a/lib/ansible/modules/storage/purestorage/purefa_ra.py +++ b/lib/ansible/modules/storage/purestorage/purefa_ra.py @@ -38,9 +38,10 @@ EXAMPLES = r''' purefa_ra: fa_url: 10.10.10.2 api_token: e31060a7-21fc-e277-6240-25983c6c4592 + register: result - debug: - var: ansible_facts.fa_ra +- debug: + msg: "Remote Assist: {{ result['ra_info'] }}" - name: Disable Remote Assist port purefa_ra: @@ -75,7 +76,7 @@ def enable_ra(module, array): 'port': ra_data['port']} except Exception: module.fail_json(msg='Getting Remote Assist failed') - module.exit_json(changed=changed, ansible_facts=ra_facts) + module.exit_json(changed=changed, ra_info=ra_facts) def disable_ra(module, array):