From 31878ee0eadd4e9d692d48121ec5e34f4dc45dd5 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 12 Mar 2018 13:55:48 -0700 Subject: [PATCH] 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'] --- 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 a2f47fc318..c83709df4d 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: