Merge "Remove excess fact data from being returned to Ansible"

This commit is contained in:
Jenkins 2015-10-05 23:36:12 +00:00 committed by Gerrit Code Review
commit 5d9ce17212
1 changed files with 7 additions and 0 deletions

View File

@ -127,6 +127,13 @@ def main():
if item in facts:
del facts[item]
# Remove ports and links as they are useless in the ansible
# use context.
if "ports" in facts:
del facts["ports"]
if "links" in facts:
del facts["links"]
module.exit_json(changed=False, ansible_facts=facts)
else: