mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Debug log added when throttled by API
This commit is contained in:
parent
c05d9aeced
commit
f5ad6aeb70
@ -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…
Reference in New Issue
Block a user