Module: check_mk
Branch: master
Commit: 73c5cb21e557cc91389be75ecd199665feef8392
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=73c5cb21e557cc…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 25 09:58:44 2011 +0100
Correctly handling check includes now
---
doc/helpers/validate_checks | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/doc/helpers/validate_checks b/doc/helpers/validate_checks
index 7dd074d..2e13261 100755
--- a/doc/helpers/validate_checks
+++ b/doc/helpers/validate_checks
@@ -64,7 +64,9 @@ execfile('check_mk')
__name__ = '__main__'
def get_checks():
- return [ l for l in os.listdir('checks') if not l.startswith('.') ]
+ files = os.listdir('checks')
+ return [ f for f in files if f.endswith(".include") and not
f.startswith('.') ] + \
+ [ f for f in files if not f.endswith(".include") and not
f.startswith('.') ]
def check_has_perfdata(check):
return check_info[check][2] == 1