Merge pull request #10985 from jmhodges/correct_unbound_error
correct unbound error in ec2.py's RDS code path
This commit is contained in:
commit
3a7cb413d1
1 changed files with 1 additions and 0 deletions
|
@ -382,6 +382,7 @@ class Ec2Inventory(object):
|
||||||
for instance in instances:
|
for instance in instances:
|
||||||
self.add_rds_instance(instance, region)
|
self.add_rds_instance(instance, region)
|
||||||
except boto.exception.BotoServerError, e:
|
except boto.exception.BotoServerError, e:
|
||||||
|
error = e.message
|
||||||
if e.error_code == 'AuthFailure':
|
if e.error_code == 'AuthFailure':
|
||||||
error = self.get_auth_error_message()
|
error = self.get_auth_error_message()
|
||||||
if not e.reason == "Forbidden":
|
if not e.reason == "Forbidden":
|
||||||
|
|
Loading…
Reference in a new issue