mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix key lookup in gather facts flag.
This commit is contained in:
parent
70e42f917d
commit
bd7466d56c
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ class PlayIterator:
|
||||||
self._host_states[host.name] = HostState(blocks=self._blocks)
|
self._host_states[host.name] = HostState(blocks=self._blocks)
|
||||||
# if the host's name is in the variable manager's fact cache, then set
|
# if the host's name is in the variable manager's fact cache, then set
|
||||||
# its _gathered_facts flag to true for smart gathering tests later
|
# its _gathered_facts flag to true for smart gathering tests later
|
||||||
if host.name in variable_manager._fact_cache and variable_manager._fact_cache.get('module_setup', False):
|
if host.name in variable_manager._fact_cache and variable_manager._fact_cache.get(host.name).get('module_setup', False):
|
||||||
host._gathered_facts = True
|
host._gathered_facts = True
|
||||||
# if we're looking to start at a specific task, iterate through
|
# if we're looking to start at a specific task, iterate through
|
||||||
# the tasks for this host until we find the specified task
|
# the tasks for this host until we find the specified task
|
||||||
|
|
Loading…
Reference in a new issue