mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #13550 from KrzysiekJ/connect_to_region-wrap
Use wrapped connect_to_region everywhere in ec2.py
This commit is contained in:
commit
e1ee2ed5a5
1 changed files with 2 additions and 2 deletions
|
@ -523,7 +523,7 @@ class Ec2Inventory(object):
|
||||||
# that's why we need to call describe directly (it would be called by
|
# that's why we need to call describe directly (it would be called by
|
||||||
# the shorthand method anyway...)
|
# the shorthand method anyway...)
|
||||||
try:
|
try:
|
||||||
conn = elasticache.connect_to_region(region)
|
conn = self.connect_to_aws(elasticache, region)
|
||||||
if conn:
|
if conn:
|
||||||
# show_cache_node_info = True
|
# show_cache_node_info = True
|
||||||
# because we also want nodes' information
|
# because we also want nodes' information
|
||||||
|
@ -559,7 +559,7 @@ class Ec2Inventory(object):
|
||||||
# that's why we need to call describe directly (it would be called by
|
# that's why we need to call describe directly (it would be called by
|
||||||
# the shorthand method anyway...)
|
# the shorthand method anyway...)
|
||||||
try:
|
try:
|
||||||
conn = elasticache.connect_to_region(region)
|
conn = self.connect_to_aws(elasticache, region)
|
||||||
if conn:
|
if conn:
|
||||||
response = conn.describe_replication_groups()
|
response = conn.describe_replication_groups()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue