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:
parent
eac35c68df
commit
507f89e693
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)
|
|
@ -675,9 +675,7 @@ def main():
|
||||||
if 'offload' in subset or 'all' in subset:
|
if 'offload' in subset or 'all' in subset:
|
||||||
facts['offload'] = generate_offload_dict(array)
|
facts['offload'] = generate_offload_dict(array)
|
||||||
|
|
||||||
result = dict(ansible_purefa_facts=facts,)
|
module.exit_json(ansible_facts={'ansible_purefa_facts': facts})
|
||||||
|
|
||||||
module.exit_json(**result)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -643,9 +643,7 @@ def main():
|
||||||
if 'snapshots' in subset or 'all' in subset:
|
if 'snapshots' in subset or 'all' in subset:
|
||||||
facts['snapshots'] = generate_snap_dict(blade)
|
facts['snapshots'] = generate_snap_dict(blade)
|
||||||
|
|
||||||
result = dict(ansible_purefb_facts=facts,)
|
module.exit_json(ansible_facts={'ansible_purefb_facts': facts})
|
||||||
|
|
||||||
module.exit_json(**result)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue