From c2c56eefa86b1a9a3a65655c16027749f9c6c912 Mon Sep 17 00:00:00 2001 From: Jeff Hodges Date: Mon, 11 May 2015 15:53:16 -0700 Subject: [PATCH] correct unbound error variable in rds code path Fixes #10910 --- plugins/inventory/ec2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/inventory/ec2.py b/plugins/inventory/ec2.py index 5f7bd061d72..3a6513c6845 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":