Module: check_mk
Branch: master
Commit: c9bc1db2c6aa84934fd9536e34db4bf4883d490e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c9bc1db2c6aa84…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Mar 26 08:28:12 2015 +0100
#2161 FIX heartbeat_crm: Fixed UnboundLocalError exception on some systems
---
.werks/2161 | 10 ++++++++++
ChangeLog | 1 +
checks/heartbeat_crm | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/2161 b/.werks/2161
new file mode 100644
index 0000000..11e2586
--- /dev/null
+++ b/.werks/2161
@@ -0,0 +1,10 @@
+Title: heartbeat_crm: Fixed UnboundLocalError exception on some systems
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1427354837
+
+
diff --git a/ChangeLog b/ChangeLog
index 3c337dc..f35a259 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -281,6 +281,7 @@
* 1238 FIX: check_mk_agent.linux: Do not execute the multipath section if no
/etc/multipath.conf exsist.
* 1240 FIX: multipath: improved detection for not installed multipath
* 2159 FIX: netapp_api_disk.summary: Changed default thresholds to WARN on the first
broken disk, CRIT on 50%...
+ * 2161 FIX: heartbeat_crm: Fixed UnboundLocalError exception on some systems
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/heartbeat_crm b/checks/heartbeat_crm
index db0b302..da1be84 100644
--- a/checks/heartbeat_crm
+++ b/checks/heartbeat_crm
@@ -72,7 +72,7 @@ factory_settings["heartbeat_crm_default_levels"] = {
}
def heartbeat_crm_parse_general(info):
- dc, numNodes, numResources = None, None, None
+ dc, num_nodes, num_resources = None, None, None
for line in info:
if ' '.join(line[0:2]) == 'Last updated:':
last_updated = ' '.join(line[2:])