Module: check_mk
Branch: master
Commit: 45d7a4c59c7763a667dbca63046c667437fcbec6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=45d7a4c59c7763…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Mon Mar 13 11:25:48 2017 +0100
4444 FIX f5_bigip_vserver: Fixed crash when Service has no params
In older version this check had no params. To be compatible with newer
version we need to take care of this circumstance and convert the variable.
Change-Id: I260969121154c2cf91f70a9b8b4fdc4f1db21a95
---
.werks/4444 | 11 +++++++++++
checks/f5_bigip_vserver | 4 ++++
2 files changed, 15 insertions(+)
diff --git a/.werks/4444 b/.werks/4444
new file mode 100644
index 0000000..fb7e5d3
--- /dev/null
+++ b/.werks/4444
@@ -0,0 +1,11 @@
+Title: f5_bigip_vserver: Fixed crash when Service has no params
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1489400639
+Class: fix
+
+In older version this check had no params. To be compatible with newer
+version we need to take care of this circumstance and convert the variable.
diff --git a/checks/f5_bigip_vserver b/checks/f5_bigip_vserver
index bfaa309..1a72e24 100644
--- a/checks/f5_bigip_vserver
+++ b/checks/f5_bigip_vserver
@@ -64,6 +64,10 @@ def inventory_f5_bigip_vserver(parsed):
def check_f5_bigip_vserver(item, params, parsed):
+ # Need compatibility to version with _no_params
+ if params = None
+ params = {}
+
if item in parsed:
vserver = parsed[item]