mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Remove 'attempts' from non-looped tasks (#35316)
* Remove 'attempts' from non-looped tasks * Use self._task.until to determine if we're in a loop * Undo recent changes to Windows tests
This commit is contained in:
@@ -577,7 +577,8 @@ class TaskExecutor:
|
||||
result['failed'] = False
|
||||
|
||||
# Make attempts and retries available early to allow their use in changed/failed_when
|
||||
result['attempts'] = attempt
|
||||
if self._task.until:
|
||||
result['attempts'] = attempt
|
||||
|
||||
# set the changed property if it was missing.
|
||||
if 'changed' not in result:
|
||||
|
||||
Reference in New Issue
Block a user