mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Correcting conditionals looping (#43331)
Empty conditionals would not break out of the loop, causing every command to be run for the same number of times as retries is defined (10 by default)
This commit is contained in:
parent
dd73bae51a
commit
e215f842ba
1 changed files with 3 additions and 3 deletions
|
@ -212,10 +212,10 @@ def main():
|
|||
break
|
||||
conditionals.remove(item)
|
||||
|
||||
if not conditionals:
|
||||
break
|
||||
if not conditionals:
|
||||
break
|
||||
|
||||
time.sleep(interval)
|
||||
time.sleep(interval)
|
||||
|
||||
if conditionals:
|
||||
failed_conditions = [item.raw for item in conditionals]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue