mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix ansible_lo being used inside of ansible_facts
The logic was keeping ansible_facts['ansible_lo'] instead of fixing it to be ansible_facts['lo']
This commit is contained in:
parent
aeb56e4bbe
commit
31878ee0ea
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ def namespace_facts(facts):
|
||||||
''' return all facts inside 'ansible_facts' w/o an ansible_ prefix '''
|
''' return all facts inside 'ansible_facts' w/o an ansible_ prefix '''
|
||||||
deprefixed = {}
|
deprefixed = {}
|
||||||
for k in facts:
|
for k in facts:
|
||||||
if k in ('ansible_local'):
|
if k in ('ansible_local',):
|
||||||
# exceptions to 'deprefixing'
|
# exceptions to 'deprefixing'
|
||||||
deprefixed[k] = deepcopy(facts[k])
|
deprefixed[k] = deepcopy(facts[k])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue