mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Tweak to the way serial percentages are handled
This commit is contained in:
parent
63e288354e
commit
82e76e42e5
2 changed files with 5 additions and 2 deletions
|
@ -227,7 +227,10 @@ class PlaybookExecutor:
|
|||
serial_pct = int(play.serial.replace("%",""))
|
||||
serial = int((serial_pct/100.0) * len(all_hosts))
|
||||
else:
|
||||
serial = int(play.serial)
|
||||
if play.serial is None:
|
||||
serial = -1
|
||||
else:
|
||||
serial = int(play.serial)
|
||||
|
||||
# if the serial count was not specified or is invalid, default to
|
||||
# a list of all hosts, otherwise split the list of hosts into chunks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue