Module: check_mk
Branch: master
Commit: 8efcc901311746173eb5ab9eda5bce07341e3a06
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8efcc901311746…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Apr 28 16:24:04 2016 +0200
3526 FIX Inventory scripts are no longer called when no data is available for their
section
This fixes an error where the aix_packages inventory plugin was always called on any
host.
---
.werks/3526 | 9 +++++++++
ChangeLog | 1 +
modules/inventory.py | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/3526 b/.werks/3526
new file mode 100644
index 0000000..9343406
--- /dev/null
+++ b/.werks/3526
@@ -0,0 +1,9 @@
+Title: Inventory scripts are no longer called when no data is available for their
section
+Level: 1
+Component: inv
+Compatible: compat
+Version: 1.2.9i1
+Date: 1461853219
+Class: fix
+
+This fixes an error where the aix_packages inventory plugin was always called on any
host.
diff --git a/ChangeLog b/ChangeLog
index 4cfb241..7e42481 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -388,6 +388,7 @@
* 3013 FIX: Inventory: snmp inventory plugins never use cached data...
* 3340 FIX: Fixed exception when searching for software package sizes
* 3025 FIX: solaris_pkginfo: the last element of the reported software package list
was always missing
+ * 3526 FIX: Inventory scripts are no longer called when no data is available for
their section...
1.2.8b1:
diff --git a/modules/inventory.py b/modules/inventory.py
index 07ae365..0070cf2 100644
--- a/modules/inventory.py
+++ b/modules/inventory.py
@@ -254,7 +254,7 @@ def do_inv_for(hostname):
raise # Otherwise simply ignore missing agent section
continue
- if info == None: # section not present (None or [])
+ if not info: # section not present (None or [])
# Note: this also excludes existing sections without info..
continue