diff options
author | Shawn Silva <shawn.l.silva@gmail.com> | 2016-01-16 13:09:58 -0500 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2016-02-02 13:28:05 -0800 |
commit | 31824711142e234ae8eba94f743329309ec7c2b0 (patch) | |
tree | bc7c1fa7638c3d75ca7f8165017ad6d4f6bf946a | |
parent | a67fa71f27aca979ef9371f4bd083d7a14a87a3a (diff) | |
download | ansible-modules-core-31824711142e234ae8eba94f743329309ec7c2b0.tar.gz |
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.
-rw-r--r-- | cloud/amazon/cloudformation.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/cloud/amazon/cloudformation.py b/cloud/amazon/cloudformation.py index 4d0db148..e8811049 100644 --- a/cloud/amazon/cloudformation.py +++ b/cloud/amazon/cloudformation.py @@ -258,9 +258,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'] |