fix for check_mode/async interaction

fixes #18110

(cherry picked from commit 432633e4c1)
This commit is contained in:
Brian Coca 2016-10-20 00:01:00 -04:00
parent f15ec38788
commit 25e4398d5b

View file

@ -501,7 +501,7 @@ class TaskExecutor:
vars_copy[self._task.register] = wrap_var(result.copy())
if self._task.async > 0:
if self._task.poll > 0:
if self._task.poll > 0 and not result.get('skipped'):
result = self._poll_async_result(result=result, templar=templar, task_vars=vars_copy)
# ensure no log is preserved