Module: check_mk
Branch: master
Commit: 3df7f248206ecd7e63de71e87f2ac41be5c1ba58
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3df7f248206ecd…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Apr 15 17:03:31 2015 +0200
HW/SW-Inventory: fix missing tree lables for new unknown paths
---
web/plugins/views/inventory.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/views/inventory.py b/web/plugins/views/inventory.py
index d69315e..cc08a2a 100644
--- a/web/plugins/views/inventory.py
+++ b/web/plugins/views/inventory.py
@@ -331,7 +331,7 @@ def inv_titleinfo(invpath, node):
if type(title) == type(lambda: None):
title = title(node)
else:
- title =
invpath.split('.')[-1].split(':')[-1].replace("_", "
").title()
+ title =
invpath.rstrip(".").split('.')[-1].split(':')[-1].replace("_",
" ").title()
return icon, title
# The titles of the last two path components of the node, e.g. "BIOS / Vendor"