mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 16:23:10 +00:00
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.
This commit is contained in:
@@ -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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user