From 12be401c11c3a8564f2ad1ea9447394c3f6d7643 Mon Sep 17 00:00:00 2001 From: Shawn Silva Date: Sat, 16 Jan 2016 13:09:58 -0500 Subject: [PATCH] The parameters 'template' and 'template_url' are incorrectly required in all cases. If the state is 'absent' they should not be required. A few lines below the correct check is already in place. --- lib/ansible/modules/cloud/amazon/cloudformation.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/cloudformation.py b/lib/ansible/modules/cloud/amazon/cloudformation.py index 81131d3044e..1b17d09296f 100644 --- a/lib/ansible/modules/cloud/amazon/cloudformation.py +++ b/lib/ansible/modules/cloud/amazon/cloudformation.py @@ -268,9 +268,6 @@ def main(): if not HAS_BOTO: module.fail_json(msg='boto required for this module') - if module.params['template'] is None and module.params['template_url'] is None: - module.fail_json(msg='Either template or template_url expected') - state = module.params['state'] stack_name = module.params['stack_name']