mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 22:00:22 -07:00
Fix role completion detection problem
When the same role is listed consecutively in a play, the previous role completion detection failed to mark it as complete as it only checked to see if the role changed. This patch addresses that by also keeping track of which task in the role we are on, so that even if the same role is encountered during later passes the task number will be less than or equal to the last noted task position. Related to #15409
This commit is contained in:
parent
9f2d22425b
commit
fed079e4cb
3 changed files with 52 additions and 3 deletions
|
@ -38,6 +38,7 @@ if PY3:
|
|||
class_types = type,
|
||||
text_type = str
|
||||
binary_type = bytes
|
||||
cmp = lambda a, b: (a > b) - (a < b)
|
||||
|
||||
MAXSIZE = sys.maxsize
|
||||
else:
|
||||
|
@ -46,6 +47,7 @@ else:
|
|||
class_types = (type, types.ClassType)
|
||||
text_type = unicode
|
||||
binary_type = str
|
||||
cmp = cmp
|
||||
|
||||
if sys.platform.startswith("java"):
|
||||
# Jython always uses 32 bits.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue