mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
INFRA-5461 - Use the same var name in both places, Tom :)
This commit is contained in:
parent
45096a5d56
commit
d2106f79bb
@ -536,13 +536,13 @@ def get_attributes(name, region=None, key=None, keyid=None, profile=None):
|
|||||||
ret['connection_draining']['timeout'] = cd.timeout
|
ret['connection_draining']['timeout'] = cd.timeout
|
||||||
ret['connecting_settings']['idle_timeout'] = cs.idle_timeout
|
ret['connecting_settings']['idle_timeout'] = cs.idle_timeout
|
||||||
return ret
|
return ret
|
||||||
except boto.exception.BotoServerError as error:
|
except boto.exception.BotoServerError as e:
|
||||||
if e.error_code == 'Throttling':
|
if e.error_code == 'Throttling':
|
||||||
log.debug("Throttled by AWS API, will retry in 5 seconds...")
|
log.debug("Throttled by AWS API, will retry in 5 seconds...")
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
retries -= 1
|
retries -= 1
|
||||||
continue
|
continue
|
||||||
log.error('ELB {0} does not exist: {1}'.format(name, error.message))
|
log.error('ELB {0} does not exist: {1}'.format(name, e.message))
|
||||||
return {}
|
return {}
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user