From 9ff46ca52f6398f95ce0a54bd57afd23c0ff7a9e Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Thu, 15 Mar 2018 16:48:46 -0400 Subject: [PATCH] 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 31878ee0eadd4e9d692d48121ec5e34f4dc45dd5) --- lib/ansible/vars/clean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/vars/clean.py b/lib/ansible/vars/clean.py index a2f47fc3184..c83709df4d7 100644 --- a/lib/ansible/vars/clean.py +++ b/lib/ansible/vars/clean.py @@ -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: