From 76b5a9fb52585d8018fca5d333ce4470757920e9 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Mon, 25 Feb 2019 00:30:32 +0100 Subject: [PATCH] rds: improve error message (#52901) --- lib/ansible/modules/cloud/amazon/rds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/rds.py b/lib/ansible/modules/cloud/amazon/rds.py index 81fa107dc25..98a2a59198a 100644 --- a/lib/ansible/modules/cloud/amazon/rds.py +++ b/lib/ansible/modules/cloud/amazon/rds.py @@ -1320,7 +1320,7 @@ def main(): region, ec2_url, aws_connect_params = get_aws_connection_info(module) 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 if module.params['port'] is None and module.params['db_engine'] is not None and module.params['command'] == 'create':