Module: check_mk
Branch: master
Commit: e9cb69da47d46737a21b55ae66db7ad78d13713f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e9cb69da47d467…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Nov 30 09:57:45 2017 +0100
Fixed issue in recent commit
Change-Id: Ic4f4eb9031083fc2cd328db1bbf14fa3d3e3a935
---
web/htdocs/wato.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 2b2994a..2e47a16 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3905,7 +3905,7 @@ class ModeBulkImport(WatoMode):
attributes.append(("tag_" + entry[0], _("Tag: %s") %
entry[1]))
# Add custom attributes
- for entry in load_custom_attrs()['host']:
+ for entry in ModeCustomHostAttrs().get_attributes():
name = entry['name']
attributes.append((name, _("Custom variable: %s") % name))
@@ -15577,6 +15577,10 @@ class ModeCustomHostAttrs(ModeCustomAttrs):
html.context_button(_("New attribute"),
watolib.folder_preserving_link([("mode", "edit_host_attr")]),
"new")
+ def get_attributes(self):
+ return self._attrs
+
+
def declare_custom_host_attrs():
# First remove all previously registered custom host attributes