mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 02:33:09 +00:00
Fix fail_json invocation in cloudformation module
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user