commit c9832453c6069030734a8c3af01e4433b3c4fb63
Author: Jiri Prochazka <jprochaz(a)redhat.com>
Date: Tue Sep 23 16:00:18 2014 +0200
No recipe specified fix
Controller should no longer run "properly" with no recipe specified.
Fixes
https://github.com/jpirko/lnst/issues/79
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst-ctl | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lnst-ctl b/lnst-ctl
index 6ff00ab..f63f610 100755
--- a/lnst-ctl
+++ b/lnst-ctl
@@ -232,6 +232,9 @@ def main():
retval = RETVAL_PASS
res_serializer = NetTestResultSerializer()
+ if recipes == []:
+ logging.error("No recipe specified!")
+ usage(RETVAL_ERR)
for recipe_path in recipes:
if os.path.isdir(recipe_path):
all_files = []