Use post_validated play for serial calculations in TQM

Fixes #17185
pull/15938/merge
James Cammarata 8 years ago
parent 0a39700b36
commit e375bfd6a5

@ -224,10 +224,10 @@ class TaskQueueManager:
num_hosts = len(self._inventory.get_hosts(new_play.hosts)) num_hosts = len(self._inventory.get_hosts(new_play.hosts))
max_serial = 0 max_serial = 0
if play.serial: if new_play.serial:
# the play has not been post_validated here, so we may need # the play has not been post_validated here, so we may need
# to convert the scalar value to a list at this point # 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): if not isinstance(serial_items, list):
serial_items = [serial_items] serial_items = [serial_items]
max_serial = max([pct_to_int(x, num_hosts) for x in serial_items]) max_serial = max([pct_to_int(x, num_hosts) for x in serial_items])

Loading…
Cancel
Save