Module: check_mk
Branch: master
Commit: f50e118dcef44aa5f23d71d7770c3345a2ec9c58
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f50e118dcef44a…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue May 1 11:05:31 2018 +0200
Show initial tree in inventory history
Change-Id: I6dc374afd2c91eb5c5ee8c3ab993edb6fb69c3f1
---
web/htdocs/inventory.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/inventory.py b/web/htdocs/inventory.py
index 5fe8547..ccc0a95 100644
--- a/web/htdocs/inventory.py
+++ b/web/htdocs/inventory.py
@@ -160,7 +160,7 @@ def get_history(hostname):
except:
return [] # No inventory for this host
else:
- history = [(timestamp, inventory_tree)]
+ history = [(0, StructuredDataTree()), (timestamp, inventory_tree)]
inventory_archive_dir = "%s/inventory_archive/%s" % (cmk.paths.var_dir,
hostname)
if os.path.exists(inventory_archive_dir):