Module: check_mk
Branch: master
Commit: fa8728b0b1e4ad06c6aad840fff2af2be28442b2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fa8728b0b1e4ad…
Author: Marcel Schulte <ms(a)mathias-kettner.de>
Date: Mon Mar 6 13:12:56 2017 +0100
8667 FIX fixed missing patchlevel in inventory data of SuSE 12.1 and 12.2
SuSE 12 SP1 and SP2 are reporting a fourth line in /etc/SuSE-release to use
/etc/os-release in future versions.
This line prevented detecting the patchlevel in HW/SW inventory. This has been fixed by a
workaround until development of /etc/os-release integration has finished.
Change-Id: I38d4bcb34838409fbe6ad646b32b79b1f0455ec3
---
.werks/8667 | 13 +++++++++++++
inventory/lnx_distro | 2 +-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/8667 b/.werks/8667
new file mode 100644
index 0000000..514ef2e
--- /dev/null
+++ b/.werks/8667
@@ -0,0 +1,13 @@
+Title: fixed missing patchlevel in inventory data of SuSE 12.1 and 12.2
+Level: 1
+Component: inv
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1488802019
+
+SuSE 12 SP1 and SP2 are reporting a fourth line in /etc/SuSE-release to use
/etc/os-release in future versions.
+This line prevented detecting the patchlevel in HW/SW inventory. This has been fixed by a
workaround until development of /etc/os-release integration has finished.
+
diff --git a/inventory/lnx_distro b/inventory/lnx_distro
index 2cbd73b..0a683d5 100644
--- a/inventory/lnx_distro
+++ b/inventory/lnx_distro
@@ -65,7 +65,7 @@ def inv_lnx_parse_suse_release(node, line):
version = line[1].split()[-1]
- if len(line) == 3:
+ if len(line) >= 3:
patchlevel = line[2].split()[-1]
else:
patchlevel = "0"