Module: check_mk
Branch: master
Commit: 2160470b0c76193df9314da5fdcf57cb4ae27cae
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2160470b0c7619…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue May 15 10:32:27 2018 +0200
6092 FIX docker_node_images: Fixed crash in case of agent output from old docker versions
Change-Id: I4618ff64ae00d78e83420a29bf08b9b68ba2fc19
---
.werks/6092 | 11 +++++++++++
inventory/docker_node_images | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/6092 b/.werks/6092
new file mode 100644
index 0000000..4743717
--- /dev/null
+++ b/.werks/6092
@@ -0,0 +1,11 @@
+Title: docker_node_images: Fixed crash in case of agent output from old docker versions
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1526373122
+
+
diff --git a/inventory/docker_node_images b/inventory/docker_node_images
index c9be7fa..5757723 100644
--- a/inventory/docker_node_images
+++ b/inventory/docker_node_images
@@ -36,7 +36,7 @@ def _parse_docker_node_images(info):
data = json.loads(" ".join(line))
- if section_name == "images":
+ if section_name == "images" and data:
parsed.setdefault((data["Repository"], data["Tag"]),
data)
elif section_name.startswith("images_labels"):