mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-03 15:51:30 -07:00
Fixes error messages to mention ElastiCache
This commit is contained in:
parent
e8c3e3d645
commit
f2d22c1373
1 changed files with 3 additions and 3 deletions
|
@ -447,7 +447,7 @@ class Ec2Inventory(object):
|
||||||
if e.error_code == 'AuthFailure':
|
if e.error_code == 'AuthFailure':
|
||||||
error = self.get_auth_error_message()
|
error = self.get_auth_error_message()
|
||||||
if not e.reason == "Forbidden":
|
if not e.reason == "Forbidden":
|
||||||
error = "Looks like AWS RDS is down:\n%s" % e.message
|
error = "Looks like AWS ElastiCache is down:\n%s" % e.message
|
||||||
self.fail_with_error(error)
|
self.fail_with_error(error)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -481,7 +481,7 @@ class Ec2Inventory(object):
|
||||||
if e.error_code == 'AuthFailure':
|
if e.error_code == 'AuthFailure':
|
||||||
error = self.get_auth_error_message()
|
error = self.get_auth_error_message()
|
||||||
if not e.reason == "Forbidden":
|
if not e.reason == "Forbidden":
|
||||||
error = "Looks like AWS RDS is down:\n%s" % e.message
|
error = "Looks like AWS ElastiCache [Replication Groups] is down:\n%s" % e.message
|
||||||
self.fail_with_error(error)
|
self.fail_with_error(error)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -491,7 +491,7 @@ class Ec2Inventory(object):
|
||||||
replication_groups = response['DescribeReplicationGroupsResponse']['DescribeReplicationGroupsResult']['ReplicationGroups']
|
replication_groups = response['DescribeReplicationGroupsResponse']['DescribeReplicationGroupsResult']['ReplicationGroups']
|
||||||
|
|
||||||
except KeyError as e:
|
except KeyError as e:
|
||||||
error = "ElastiCache query to AWS failed (unexpected format)."
|
error = "ElastiCache [Replication Groups] query to AWS failed (unexpected format)."
|
||||||
self.fail_with_error(error)
|
self.fail_with_error(error)
|
||||||
|
|
||||||
for replication_group in replication_groups:
|
for replication_group in replication_groups:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue