mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Debug log added when throttled by API
This commit is contained in:
parent
c05d9aeced
commit
f5ad6aeb70
1 changed files with 1 additions and 0 deletions
|
@ -689,6 +689,7 @@ def get_scaling_policy_arn(as_group, scaling_policy_name, region=None,
|
|||
except boto.exception.BotoServerError as e:
|
||||
if e.error_code != 'Throttling':
|
||||
raise
|
||||
log.debug('Throttled by API, will retry in 5 seconds')
|
||||
time.sleep(5)
|
||||
|
||||
log.error('Maximum number of retries exceeded')
|
||||
|
|
Loading…
Add table
Reference in a new issue