mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
rds: improve error message (#52901)
This commit is contained in:
parent
9717bc4bcf
commit
76b5a9fb52
1 changed files with 1 additions and 1 deletions
|
@ -1320,7 +1320,7 @@ def main():
|
||||||
|
|
||||||
region, ec2_url, aws_connect_params = get_aws_connection_info(module)
|
region, ec2_url, aws_connect_params = get_aws_connection_info(module)
|
||||||
if not region:
|
if not region:
|
||||||
module.fail_json(msg="Region not specified. Unable to determine region from EC2_REGION.")
|
module.fail_json(msg="Region must be specified as a parameter, in EC2_REGION or AWS_REGION environment variables or in boto configuration file")
|
||||||
|
|
||||||
# set port to per db defaults if not specified
|
# set port to per db defaults if not specified
|
||||||
if module.params['port'] is None and module.params['db_engine'] is not None and module.params['command'] == 'create':
|
if module.params['port'] is None and module.params['db_engine'] is not None and module.params['command'] == 'create':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue