From 73160e65e5708a506db2682348bf69d9ea97d3b9 Mon Sep 17 00:00:00 2001 From: Krzysztof Jurewicz Date: Tue, 15 Dec 2015 12:03:50 +0100 Subject: [PATCH] Use wrapped connect_to_region everywhere in ec2.py --- contrib/inventory/ec2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/inventory/ec2.py b/contrib/inventory/ec2.py index 4c5cf23fcb8..ff13aa9d05d 100755 --- a/contrib/inventory/ec2.py +++ b/contrib/inventory/ec2.py @@ -511,7 +511,7 @@ class Ec2Inventory(object): # that's why we need to call describe directly (it would be called by # the shorthand method anyway...) try: - conn = elasticache.connect_to_region(region) + conn = self.connect_to_aws(elasticache, region) if conn: # show_cache_node_info = True # because we also want nodes' information @@ -547,7 +547,7 @@ class Ec2Inventory(object): # that's why we need to call describe directly (it would be called by # the shorthand method anyway...) try: - conn = elasticache.connect_to_region(region) + conn = self.connect_to_aws(elasticache, region) if conn: response = conn.describe_replication_groups()