Mark vars from facts cache as unsafe (fixes #42656) (#42682)

Facts are marked as unsafe when originally gathered, but they lose that
marking when they are serialized to JSON and parsed back out.
pull/42741/head
Andrew Gaffney 6 years ago committed by GitHub
parent 44d4327bc7
commit e4af3a8957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -308,7 +308,7 @@ class VariableManager:
# finally, the facts caches for this host, if it exists
try:
facts = self._fact_cache.get(host.name, {})
facts = wrap_var(self._fact_cache.get(host.name, {}))
all_vars.update(namespace_facts(facts))
# push facts to main namespace

Loading…
Cancel
Save