mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Reworking retry/until logic to fix bugs
Prior to this patch, the retry/until logic would fail any task that succeeded if it took all of the alloted retries to succeed. This patch reworks the retry/until logic to make things more simple and clear. Fixes #15697
This commit is contained in:
parent
6d4ba4a161
commit
4f0be29d65
2 changed files with 13 additions and 13 deletions
|
@ -84,7 +84,7 @@ class Task(Base, Conditional, Taggable, Become):
|
|||
_notify = FieldAttribute(isa='list')
|
||||
_poll = FieldAttribute(isa='int')
|
||||
_register = FieldAttribute(isa='string')
|
||||
_retries = FieldAttribute(isa='int', default=3)
|
||||
_retries = FieldAttribute(isa='int')
|
||||
_until = FieldAttribute(isa='list', default=[])
|
||||
|
||||
def __init__(self, block=None, role=None, task_include=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue