mirror of
https://github.com/kewlfft/ansible-aur.git
synced 2025-07-27 05:53:50 +03:00
exit with error if empty name list
This commit is contained in:
@@ -333,6 +333,9 @@ def make_module():
|
||||
|
||||
use = params['use']
|
||||
|
||||
if params['name'] == []:
|
||||
module.fail_json(msg="'name' cannot be empty.")
|
||||
|
||||
if use == 'auto':
|
||||
if params['extra_args'] is not None:
|
||||
module.fail_json(msg="'extra_args' cannot be used with 'auto', a tool must be specified.")
|
||||
|
Reference in New Issue
Block a user