mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-10 02:41:30 +00:00
redshift_subnet_group: improve error message (#52900)
Adds more detail to region-not-specified error.
This commit is contained in:
committed by
Alicia Cozine
parent
5bdc6636bc
commit
f5c0ae82fc
@@ -121,7 +121,7 @@ def main():
|
||||
|
||||
region, ec2_url, aws_connect_params = get_aws_connection_info(module)
|
||||
if not region:
|
||||
module.fail_json(msg=str("region not specified and unable to determine region from EC2_REGION."))
|
||||
module.fail_json(msg=str("Region must be specified as a parameter, in EC2_REGION or AWS_REGION environment variables or in boto configuration file"))
|
||||
|
||||
# Connect to the Redshift endpoint.
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user