Make sure free strategy is returning proper TQM constants
Fixes #18023
(cherry picked from commit 6bdcb3a392
)
This commit is contained in:
parent
05dfed7575
commit
b8c25d8f70
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue