mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #49290 from rallytime/bp-44504
Back-port #44504 to 2017.7
This commit is contained in:
commit
c7bae5e795
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ def flaky(caller=None, condition=True):
|
|||
try:
|
||||
return caller(cls)
|
||||
except Exception as exc:
|
||||
if attempt == 4:
|
||||
if attempt >= 3:
|
||||
raise exc
|
||||
backoff_time = attempt ** 2
|
||||
log.info('Found Exception. Waiting %s seconds to retry.', backoff_time)
|
||||
|
|
Loading…
Add table
Reference in a new issue