Merge "Remove some problematic facts"

This commit is contained in:
Jenkins 2016-02-24 00:22:01 +00:00 committed by Gerrit Code Review
commit 3eb76ec392
1 changed files with 8 additions and 0 deletions

View File

@ -98,6 +98,14 @@ def main():
# too - but let facter facts with the same name win
facts.setdefault(k, v)
# remove some problematic facts from facts (if they exist)
# files can be a long list of files in a directory
if facts.get('files') is not None:
del facts['files']
# groups can be the entire ansible inventory
if facts.get('groups') is not None:
del facts['groups']
if facts:
# Don't post facts update if we don't have facts
payload = {