Module: check_mk
Branch: master
Commit: a20fc1e2b603de72abc28832ec0ce9443e04f9d0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a20fc1e2b603de…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jan 31 17:04:06 2012 +0100
mounts: fix python exception
---
checks/mounts | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/checks/mounts b/checks/mounts
index 5764cbe..54a7f4f 100644
--- a/checks/mounts
+++ b/checks/mounts
@@ -38,13 +38,15 @@ def check_mounts(item, targetopts, info):
if item == mp:
opts = options.split(",")
# Now compute the exact difference.
+
exceeding = []
- missing = []
for o in opts:
if o not in targetopts and not o.startswith("commit="):
exceeding.append(o)
- for o in targetopts and not o.startswith("commit="):
- if o not in opts:
+
+ missing = []
+ for o in targetopts:
+ if o not in opts and not o.startswith("commit="):
missing.append(o)
if not missing and not exceeding: