mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
0a39700b36
commit
e375bfd6a5
1 changed files with 2 additions and 2 deletions
|
@ -224,10 +224,10 @@ class TaskQueueManager:
|
|||
num_hosts = len(self._inventory.get_hosts(new_play.hosts))
|
||||
|
||||
max_serial = 0
|
||||
if play.serial:
|
||||
if new_play.serial:
|
||||
# the play has not been post_validated here, so we may need
|
||||
# to convert the scalar value to a list at this point
|
||||
serial_items = play.serial
|
||||
serial_items = new_play.serial
|
||||
if not isinstance(serial_items, list):
|
||||
serial_items = [serial_items]
|
||||
max_serial = max([pct_to_int(x, num_hosts) for x in serial_items])
|
||||
|
|
Loading…
Reference in a new issue