Don't double proxy unsafe variables

Potential fix for #12260
pull/4420/head
James Cammarata 2015-09-08 02:50:07 -04:00
parent dc945b8040
commit 1eb5b42705
1 changed files with 2 additions and 1 deletions

View File

@ -183,6 +183,7 @@ class VariableManager:
try:
host_facts = self._fact_cache.get(host.name, dict())
for k in host_facts.keys():
if not isinstance(host_facts[k], UnsafeProxy):
host_facts[k] = UnsafeProxy(host_facts[k])
all_vars = combine_vars(all_vars, host_facts)
except KeyError: