From adc56e52d8bdd4634818ca091fd09576ebd88f33 Mon Sep 17 00:00:00 2001 From: "Ryan S. Brown" Date: Mon, 17 Oct 2016 14:52:28 -0400 Subject: [PATCH] Fix `fail_json` invocation in `cloudformation` module --- lib/ansible/modules/cloud/amazon/cloudformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/cloudformation.py b/lib/ansible/modules/cloud/amazon/cloudformation.py index 1c61483c1a8..6d06e5ebb33 100644 --- a/lib/ansible/modules/cloud/amazon/cloudformation.py +++ b/lib/ansible/modules/cloud/amazon/cloudformation.py @@ -273,7 +273,7 @@ def main(): if module.params['template'] is None and module.params['template_url'] is None: if state == 'present': - module.fail_json('Module parameter "template" or "template_url" is required if "state" is "present"') + module.fail_json(msg='Module parameter "template" or "template_url" is required if "state" is "present"') if module.params['template'] is not None: template_body = open(module.params['template'], 'r').read()