Make is so that the params param truly isn't required (fix for #3860)

pull/18777/head
Elena Washington 9 years ago committed by Matt Clay
parent 0fe99f20d9
commit 91e433594a

@ -232,7 +232,7 @@ def main():
immediate = module.params.get('immediate') or False immediate = module.params.get('immediate') or False
if state == 'present': if state == 'present':
for required in ['name', 'description', 'engine', 'params']: for required in ['name', 'description', 'engine']:
if not module.params.get(required): if not module.params.get(required):
module.fail_json(msg = str("Parameter %s required for state='present'" % required)) module.fail_json(msg = str("Parameter %s required for state='present'" % required))
else: else:

Loading…
Cancel
Save