Module: check_mk
Branch: master
Commit: a51a169cb2a379d28c8074f342212da0f3a949a2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a51a169cb2a379…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue May 16 09:49:59 2017 +0200
Cleanup --checks option @all
Change-Id: I085d6aa46a8ce1337fa1d7ee42dc5db7f269518a
---
modules/check_mk.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 398c256..f86628d 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -4615,9 +4615,10 @@ for o,a in opts:
elif o == '-I':
seen_I += 1
elif o == "--checks":
- check_types = a.split(",")
- if len(check_types) == 1 and check_types[0] == "@all":
+ if a == "@all":
check_types = check_info.keys()
+ else:
+ check_types = a.split(",")
elif o == "--cmc-file":
opt_cmc_relfilename = a