mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Print explicit error cause when no ELBs are found in AWS
This commit is contained in:
parent
9bba1b66c5
commit
e20317b3be
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ def list_elb(connection, module):
|
|||
try:
|
||||
all_elbs = connection.get_all_load_balancers(elb_names)
|
||||
except BotoServerError as e:
|
||||
module.fail_json(msg=get_error_message(e.args[2]))
|
||||
module.fail_json(msg = "%s: %s" % (e.error_code, e.error_message))
|
||||
|
||||
elb_array = []
|
||||
for elb in all_elbs:
|
||||
|
|
Loading…
Reference in a new issue