Module: check_mk
Branch: master
Commit: a2e463bd71e7305e01b53897956cbdda3c4af6ea
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a2e463bd71e730…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Apr 17 16:53:39 2015 +0200
aix_packages: fix exception when section is empty
---
inventory/aix_packages | 3 +++
1 file changed, 3 insertions(+)
diff --git a/inventory/aix_packages b/inventory/aix_packages
index 7bbeb31..199c177 100644
--- a/inventory/aix_packages
+++ b/inventory/aix_packages
@@ -36,6 +36,9 @@
def inv_aix_packages(info):
+ if not info:
+ return # Empty section
+
paclist = inv_tree("software.packages:")
headers = info[0]
headers[0] = headers[0].lstrip("#")