From ccb5cde76f2bf99bd47e2919dc01e83f140bf983 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Fri, 31 Jul 2020 08:31:14 -0600 Subject: [PATCH] Refetch task When we grab the task to execute, use the one we fetch to advance the host rather than the peeked version. Change-Id: If8f53f900070bb714662e519b4017d963af30ccc --- tripleo_ansible/ansible_plugins/strategy/tripleo_free.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tripleo_ansible/ansible_plugins/strategy/tripleo_free.py b/tripleo_ansible/ansible_plugins/strategy/tripleo_free.py index 050c8d645..937369582 100644 --- a/tripleo_ansible/ansible_plugins/strategy/tripleo_free.py +++ b/tripleo_ansible/ansible_plugins/strategy/tripleo_free.py @@ -179,10 +179,8 @@ class StrategyModule(BASE.TripleoBase): # that have tasks in queue self._blocked_hosts[host_name] = True - # we already have the task and state from our peek call so we don't - # need these again. This call just pops it of the task list for the - # host. - (_, _) = self._iterator.get_next_task_for_host(host) + # Refetch the task without peek + (_, task) = self._iterator.get_next_task_for_host(host) action = self._get_action(task) try: