Fix ansible_lo being used inside of ansible_facts (#37360)

The logic was keeping ansible_facts['ansible_lo'] instead of fixing it
to be ansible_facts['lo']

(cherry picked from commit 31878ee0ea)
pull/37299/merge
Adrian Likins 7 years ago committed by Matt Davis
parent 0a2db12370
commit 9ff46ca52f

@ -106,7 +106,7 @@ def namespace_facts(facts):
''' return all facts inside 'ansible_facts' w/o an ansible_ prefix '''
deprefixed = {}
for k in facts:
if k in ('ansible_local'):
if k in ('ansible_local',):
# exceptions to 'deprefixing'
deprefixed[k] = deepcopy(facts[k])
else:

Loading…
Cancel
Save