Commit 3a7cb413 by Brian Coca

Merge pull request #10985 from jmhodges/correct_unbound_error

correct unbound error in ec2.py's RDS code path
parents 4eff3d5d c2c56eef
......@@ -382,6 +382,7 @@ class Ec2Inventory(object):
for instance in instances:
self.add_rds_instance(instance, region)
except boto.exception.BotoServerError, e:
error = e.message
if e.error_code == 'AuthFailure':
error = self.get_auth_error_message()
if not e.reason == "Forbidden":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment