From e1d248dddf2a6cfcb61eb18290cc19d39d4ae8b5 Mon Sep 17 00:00:00 2001 From: ben-taylor-nzme Date: Wed, 15 Jun 2016 02:02:07 +1200 Subject: [PATCH] fix error message (#16264) The error was: TypeError: fail_json() takes exactly 1 argument (2 given) --- lib/ansible/module_utils/ec2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/ec2.py b/lib/ansible/module_utils/ec2.py index 3b2714eb53..9b12011b98 100644 --- a/lib/ansible/module_utils/ec2.py +++ b/lib/ansible/module_utils/ec2.py @@ -151,7 +151,7 @@ def get_aws_connection_info(module, boto3=False): # here we don't need to make an additional call, will default to 'us-east-1' if the below evaluates to None. region = botocore.session.get_session().get_config_variable('region') else: - module.fail_json("Boto3 is required for this module. Please install boto3 and try again") + module.fail_json(msg="Boto3 is required for this module. Please install boto3 and try again") if not security_token: if 'AWS_SECURITY_TOKEN' in os.environ: