From d2106f79bbd3f4747d01bd3bf7a307bfeb1178e4 Mon Sep 17 00:00:00 2001 From: Tom Williams Date: Wed, 20 Sep 2017 21:10:44 -0400 Subject: [PATCH] INFRA-5461 - Use the same var name in both places, Tom :) --- salt/modules/boto_elb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/modules/boto_elb.py b/salt/modules/boto_elb.py index e026622e32..6f6bb4c6e9 100644 --- a/salt/modules/boto_elb.py +++ b/salt/modules/boto_elb.py @@ -536,13 +536,13 @@ def get_attributes(name, region=None, key=None, keyid=None, profile=None): ret['connection_draining']['timeout'] = cd.timeout ret['connecting_settings']['idle_timeout'] = cs.idle_timeout return ret - except boto.exception.BotoServerError as error: + except boto.exception.BotoServerError as e: if e.error_code == 'Throttling': log.debug("Throttled by AWS API, will retry in 5 seconds...") time.sleep(5) retries -= 1 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 {}