Module: check_mk
Branch: master
Commit: 142ea8be52942be1b3a84f1e02fb8575605f55d0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=142ea8be52942b…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu May 11 12:57:39 2017 +0200
4652 FIX ipmi_common.include: Fixed wrong states handling; only use state if there are
related items
Change-Id: Iaa6556a8b8844e499d6e868288fd64b095d5f49b
---
.werks/4652 | 11 +++++++++++
checks/ipmi_common.include | 4 ++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/4652 b/.werks/4652
new file mode 100644
index 0000000..2ac64af
--- /dev/null
+++ b/.werks/4652
@@ -0,0 +1,11 @@
+Title: ipmi_common.include: Fixed wrong states handling; only use state if there are
related items
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1494500184
+
+
diff --git a/checks/ipmi_common.include b/checks/ipmi_common.include
index 1798ce7..d6a71e3 100644
--- a/checks/ipmi_common.include
+++ b/checks/ipmi_common.include
@@ -208,7 +208,7 @@ def check_ipmi_common_summarized(params, parsed, status_txt_mapping):
infotext += ": %s%s" % (", ".join(texts), extrainfo)
infotexts.append( infotext )
- if text_state:
- states.append(text_state)
+ if text_state:
+ states.append(text_state)
return max(states), ' - '.join(infotexts), perfdata