mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Fixing retry/until logic and default value for retries
Fixes #12928 Fixes #12929
This commit is contained in:
parent
57fe0d6aed
commit
3fc2209ca0
2 changed files with 6 additions and 3 deletions
|
@ -325,8 +325,11 @@ class TaskExecutor:
|
|||
self._task.args = dict((i[0], i[1]) for i in iteritems(self._task.args) if i[1] != omit_token)
|
||||
|
||||
# Read some values from the task, so that we can modify them if need be
|
||||
retries = self._task.retries
|
||||
if retries <= 0:
|
||||
if self._task.until is not None:
|
||||
retries = self._task.retries
|
||||
if retries <= 0:
|
||||
retries = 1
|
||||
else:
|
||||
retries = 1
|
||||
|
||||
delay = self._task.delay
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue