From bd7466d56cf47da3add5abf8c9ea5062a0bae776 Mon Sep 17 00:00:00 2001 From: Arne Demmers Date: Sat, 31 Dec 2016 14:18:06 +0100 Subject: [PATCH] Fix key lookup in gather facts flag. --- lib/ansible/executor/play_iterator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/play_iterator.py b/lib/ansible/executor/play_iterator.py index 625d2b9c6e..ad8facac65 100644 --- a/lib/ansible/executor/play_iterator.py +++ b/lib/ansible/executor/play_iterator.py @@ -201,7 +201,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