diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2017-04-20 12:04:08 -0400 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2017-04-20 18:03:21 -0400 |
commit | 62811bf134bc808a534e0a1e7f1c7d323775e4bc (patch) | |
tree | 5213d7c47aa99dca6ee9150830d246eb210c7462 | |
parent | 68fff4a4b5299f9f6c832dbe3f317a469b47222c (diff) | |
download | ansible-62811bf134bc808a534e0a1e7f1c7d323775e4bc.tar.gz |
also skip polling when async failed
(cherry picked from commit 94f0a4edd5dad15f720ec087f04f20bcbef1b97b)
-rw-r--r-- | lib/ansible/executor/task_executor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index c2c87ef5a8..b1974b923e 100644 --- a/lib/ansible/executor/task_executor.py +++ b/lib/ansible/executor/task_executor.py @@ -532,7 +532,7 @@ class TaskExecutor: vars_copy[self._task.register] = wrap_var(result.copy()) if self._task.async > 0: - if self._task.poll > 0 and not result.get('skipped'): + if self._task.poll > 0 and not result.get('skipped') and not result.get('failed'): result = self._poll_async_result(result=result, templar=templar, task_vars=vars_copy) #FIXME callback 'v2_runner_on_async_poll' here |