1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Pure Storage facts fix (#50349)

* Add module for Pure Storage FlashBlade to manage directory services

* Fix facts not correctly passing into ansible_facts dict
This commit is contained in:
Simon Dodsley 2018-12-31 04:22:13 -05:00 committed by John R Barker
parent eac35c68df
commit 507f89e693
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

@ -675,9 +675,7 @@ def main():
if 'offload' in subset or 'all' in subset:
facts['offload'] = generate_offload_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__':