From 95aa8f3047e3c13cd094bf88d407a7ec9410fd0c Mon Sep 17 00:00:00 2001 From: kewl fft Date: Wed, 20 Jan 2021 16:57:45 -0500 Subject: [PATCH] exit with error if empty name list --- library/aur.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/aur.py b/library/aur.py index 1186f77..736774c 100644 --- a/library/aur.py +++ b/library/aur.py @@ -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.")