From 6bdcb3a392e1be08e3a5846e25af0c5147a58e00 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 14 Oct 2016 09:23:12 -0500 Subject: [PATCH] Make sure free strategy is returning proper TQM constants Fixes #18023 --- lib/ansible/plugins/strategy/free.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/strategy/free.py b/lib/ansible/plugins/strategy/free.py index 45e417a23e..d92d9543fc 100644 --- a/lib/ansible/plugins/strategy/free.py +++ b/lib/ansible/plugins/strategy/free.py @@ -56,7 +56,7 @@ class StrategyModule(StrategyBase): # the last host to be given a task last_host = 0 - result = True + result = self._tqm.RUN_OK work_to_do = True while work_to_do and not self._tqm._terminated: @@ -175,7 +175,7 @@ class StrategyModule(StrategyBase): variable_manager=self._variable_manager ) except AnsibleError as e: - return False + return self._tqm.RUN_ERROR if len(included_files) > 0: all_blocks = dict((host, []) for host in hosts_left)