Module: check_mk
Branch: master
Commit: af8050900de2d72ef2a3d1b62a99f6d17e7e430b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=af8050900de2d7…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Sep 4 13:54:31 2012 +0200
Fixed little bug in printer_alerts
---
checks/printer_alerts | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/printer_alerts b/checks/printer_alerts
index 95ac1dc..486eb05 100644
--- a/checks/printer_alerts
+++ b/checks/printer_alerts
@@ -96,9 +96,9 @@ def check_printer_alerts(_not_used, _not_used1, info):
state = printer_alerts_text_map[desc]
sum_txt.append("%s - %s" % (nagios_state_names[state], desc))
break
-
+ code = saveint(code)
for s in [ 2, 1, 0 ]:
- if saveint(code) in printer_alerts_state_map[s]:
+ if code in printer_alerts_state_map[s]:
state = s
break