Module: check_mk
Branch: master
Commit: 38c421a2cec78e85187d33d9b04ca1fd5623234b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=38c421a2cec78e…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Jan 14 16:41:25 2019 +0100
7005 FIX HW/SW inventory: Fixed API error 'Too many values to unpack'
Change-Id: I6c3fd30cba400c940653dc50a349c273ae7b1126
---
.werks/7005 | 11 +++++++++++
cmk/gui/inventory.py | 3 +--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/7005 b/.werks/7005
new file mode 100644
index 0000000..5464092
--- /dev/null
+++ b/.werks/7005
@@ -0,0 +1,11 @@
+Title: HW/SW inventory: Fixed API error 'Too many values to unpack'
+Level: 1
+Component: inv
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1547479895
+
+
diff --git a/cmk/gui/inventory.py b/cmk/gui/inventory.py
index 0093731..0df4855 100644
--- a/cmk/gui/inventory.py
+++ b/cmk/gui/inventory.py
@@ -430,8 +430,7 @@ def _inventory_of_host(host_name, request):
if "paths" in request:
parsed_paths = []
for path in request["paths"]:
- parsed_path, _key = parse_tree_path(path)
- parsed_paths.append(parsed_path)
+ parsed_paths.append(parse_tree_path(path))
merged_tree = merged_tree.get_filtered_tree(parsed_paths)
return merged_tree.get_raw_tree()