Module: check_mk
Branch: master
Commit: ff1bf227a194d15c60719a59d2a56cca9e95dc97
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ff1bf227a194d1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 12 22:26:08 2010 +0100
fixed global_vars check
---
doc/helpers/validate_checks | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/doc/helpers/validate_checks b/doc/helpers/validate_checks
index d6cd425..5850bd0 100755
--- a/doc/helpers/validate_checks
+++ b/doc/helpers/validate_checks
@@ -169,8 +169,6 @@ def verify_global_vars(check):
# Documented configuration vars can be skipped
if not invalid and grep_manpage(check, "^%s" % var,
'configuration'):
continue
- elif check == 'aironet_clients':
- print 'found'
# Check unknown vars for correct prefix
if not var.startswith('%s_' % check_file):
@@ -182,7 +180,7 @@ def verify_global_vars(check):
else:
invalid_global_vars[check_file] += [ var ]
- return check_file in invalid_global_vars
+ return not check_file in invalid_global_vars
# Reindent code:
# - Is there some code to be reindented?