mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
Facts are marked as unsafe when originally gathered, but they lose that marking when they are serialized to JSON and parsed back out.
This commit is contained in:
parent
44d4327bc7
commit
e4af3a8957
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ class VariableManager:
|
||||||
|
|
||||||
# finally, the facts caches for this host, if it exists
|
# finally, the facts caches for this host, if it exists
|
||||||
try:
|
try:
|
||||||
facts = self._fact_cache.get(host.name, {})
|
facts = wrap_var(self._fact_cache.get(host.name, {}))
|
||||||
all_vars.update(namespace_facts(facts))
|
all_vars.update(namespace_facts(facts))
|
||||||
|
|
||||||
# push facts to main namespace
|
# push facts to main namespace
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue