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:
Simon Dodsley 2018-12-31 04:22:13 -05:00 committed by Toshio Kuratomi
parent a5bf4182e6
commit 44248c0ba2
3 changed files with 5 additions and 6 deletions

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

View file

@ -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__':

View file

@ -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__':