Debug log added when throttled by API

This commit is contained in:
Nasenbaer 2017-10-06 09:05:42 +02:00
parent c05d9aeced
commit f5ad6aeb70

View File

@ -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')