0fc0b6f059
It was in lib/ansible/modules/system/setup.py since it was the only thing using it, but move it back to module_utils and add a ansible_collector.get_ansible_collector() to build a facts collector just like the one used by setup.py mv test_setup.py -> test_ansible_collector.py All the code it was testing is now in ansible_collector rm code to create 'ansible_facts' subkey from namespace Just leave it up to the caller to do, and just return a flat dictionary from AnsibleFactCollector.collect() |
||
---|---|---|
.. | ||
fixtures | ||
hardware | ||
network | ||
other | ||
system | ||
__init__.py | ||
base.py | ||
test_ansible_collector.py | ||
test_collector.py | ||
test_collectors.py | ||
test_facts.py | ||
test_timeout.py | ||
test_utils.py |