Use wrapped connect_to_region everywhere in ec2.py
This commit is contained in:
parent
5d1a2eac3e
commit
73160e65e5
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue