exit with error if empty name list

pull/52/head
kewl fft 2021-01-20 16:57:45 -05:00
parent 592c6d9841
commit 95aa8f3047
1 changed files with 3 additions and 0 deletions

View File

@ -333,6 +333,9 @@ def make_module():
use = params['use'] use = params['use']
if params['name'] == []:
module.fail_json(msg="'name' cannot be empty.")
if use == 'auto': if use == 'auto':
if params['extra_args'] is not None: if params['extra_args'] is not None:
module.fail_json(msg="'extra_args' cannot be used with 'auto', a tool must be specified.") module.fail_json(msg="'extra_args' cannot be used with 'auto', a tool must be specified.")