Pure Storage facts fix (#50349)
* Add module for Pure Storage FlashBlade to manage directory services
* Fix facts not correctly passing into ansible_facts dict
(cherry picked from commit 507f89e693
)
This commit is contained in:
parent
a5bf4182e6
commit
44248c0ba2
3 changed files with 5 additions and 6 deletions
3
changelogs/fragments/pure_facts_fix.yaml
Normal file
3
changelogs/fragments/pure_facts_fix.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
bugfixes:
|
||||
- purefa_facts and purefb_facts now correctly adds facts into main ansible_fact dictionary (https://github.com/ansible/ansible/pull/50349)
|
|
@ -589,9 +589,7 @@ def main():
|
|||
if 'pgroups' in subset or 'all' in subset:
|
||||
facts['pgroups'] = generate_pgroups_dict(array)
|
||||
|
||||
result = dict(ansible_purefa_facts=facts,)
|
||||
|
||||
module.exit_json(**result)
|
||||
module.exit_json(ansible_facts={'ansible_purefa_facts': facts})
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
@ -643,9 +643,7 @@ def main():
|
|||
if 'snapshots' in subset or 'all' in subset:
|
||||
facts['snapshots'] = generate_snap_dict(blade)
|
||||
|
||||
result = dict(ansible_purefb_facts=facts,)
|
||||
|
||||
module.exit_json(**result)
|
||||
module.exit_json(ansible_facts={'ansible_purefb_facts': facts})
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue