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):