diff options
author | Arne Demmers <arne.demmers@telenetgroup.be> | 2016-12-31 14:18:06 +0100 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2017-01-03 13:53:33 -0500 |
commit | e05222a4cc7654c2f58d3abca12784f0fc7e582f (patch) | |
tree | 289c1faa6bb31ac00404eec2cafaad00e8245158 | |
parent | 32dad09d2ecbd744a17a16b568f495a8d4704d64 (diff) | |
download | ansible-e05222a4cc7654c2f58d3abca12784f0fc7e582f.tar.gz |
Fix key lookup in gather facts flag.
(cherry picked from commit bd7466d56cf47da3add5abf8c9ea5062a0bae776)
-rw-r--r-- | lib/ansible/executor/play_iterator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/executor/play_iterator.py b/lib/ansible/executor/play_iterator.py index 9c9e461001..a20351b16f 100644 --- a/lib/ansible/executor/play_iterator.py +++ b/lib/ansible/executor/play_iterator.py @@ -202,7 +202,7 @@ class PlayIterator: self._host_states[host.name] = HostState(blocks=self._blocks) # 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 - 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 # if we're looking to start at a specific task, iterate through # the tasks for this host until we find the specified task |