Commit c2c56eef by Jeff Hodges

correct unbound error variable in rds code path

Fixes #10910
parent 9a078551
...@@ -382,6 +382,7 @@ class Ec2Inventory(object): ...@@ -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":
......
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