Use results instead of result._results when saving host facts

We want to use the parsed (and sanitized) results, not the original
ones.

Change-Id: Ibb737cc4154626a04135ecb299e459ce05817ecf
This commit is contained in:
David Moreau Simard 2018-09-04 10:55:04 -04:00
parent 50789d4d59
commit 40218b10f8
No known key found for this signature in database
GPG Key ID: 33A07694CBB71ECC
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class CallbackModule(CallbackBase):
msg = "Not saved by ARA as configured by ARA_IGNORE_FACTS"
results['ansible_facts'][fact] = msg
values = jsonutils.dumps(result._result['ansible_facts'])
values = jsonutils.dumps(results['ansible_facts'])
facts = models.HostFacts(values=values)
host.facts = facts