diff options
author | Brian Coca <bcoca@ansible.com> | 2015-05-11 23:01:55 -0400 |
---|---|---|
committer | Brian Coca <bcoca@ansible.com> | 2015-05-11 23:01:55 -0400 |
commit | 3a7cb413d158b4a6243968599b5890697d9dcf13 (patch) | |
tree | 9f42b52e8afa16d791b4fb98c4e37894800d4178 | |
parent | 4eff3d5dc184eed37e9037167d574b13fa8893bf (diff) | |
parent | c2c56eefa86b1a9a3a65655c16027749f9c6c912 (diff) | |
download | ansible-3a7cb413d158b4a6243968599b5890697d9dcf13.tar.gz |
Merge pull request #10985 from jmhodges/correct_unbound_error
correct unbound error in ec2.py's RDS code path
-rwxr-xr-x | plugins/inventory/ec2.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/inventory/ec2.py b/plugins/inventory/ec2.py index 5f7bd061d7..3a6513c684 100755 --- a/plugins/inventory/ec2.py +++ b/plugins/inventory/ec2.py @@ -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": |