Module: check_mk
Branch: master
Commit: 32b8ca34c925380b39bb0c46efe15787207105bc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=32b8ca34c92538…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 29 23:04:18 2019 +0100
Host attributes: Cleaned up host_attributes.all_host_attributes()
* This function relied on the _host_attributes structure which
was meant to keep the registration sorting. That was not needed
in most cases. Using the host_attributes.attributes() accessor now.
* Custom host attributes: Using internal topic IDs now for referencing
the host attribute topics instead of the localized topic titles.
CMK-1588
Change-Id: I1a351fad0c8f736efbd3688a88c083adfe504b6b
---
cmk/gui/plugins/wato/builtin_attributes.py | 2 +-
cmk/gui/plugins/webapi/utils.py | 6 +-
cmk/gui/wato/pages/bulk_edit.py | 4 +-
cmk/gui/wato/pages/custom_attributes.py | 19 +++--
cmk/gui/wato/pages/folders.py | 5 +-
cmk/gui/watolib/__init__.py | 1 -
cmk/gui/watolib/host_attributes.py | 92 +++++++++++++++++-----
cmk/gui/watolib/hosts_and_folders.py | 10 +--
tests/unit/cmk/gui/watolib/test_host_attributes.py | 86 ++++++++++++--------
9 files changed, 154 insertions(+), 71 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=32b8ca34c9…