Module: check_mk
Branch: master
Commit: 31a58a1d95e47d91020d430f9d933b3635d502d3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=31a58a1d95e47d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue May 9 13:56:24 2017 +0200
4668 FIX Fixed editing of cluster properties
Editing of cluster host properties (except nodes) was not possible. When loading and
saving a cluster the set attributes of the cluster were lost.
Change-Id: I6ecc183d1213b388856a44d82f192c0ef0c20650
---
.werks/4668 | 12 ++++++++++++
web/htdocs/wato.py | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/4668 b/.werks/4668
new file mode 100644
index 0000000..e5fb785
--- /dev/null
+++ b/.werks/4668
@@ -0,0 +1,12 @@
+Title: Fixed editing of cluster properties
+Level: 2
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1494330927
+
+Editing of cluster host properties (except nodes) was not possible. When loading and
+saving a cluster the set attributes of the cluster were lost.
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 3aa7d14..4279ffb 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1418,7 +1418,7 @@ def vs_cluster_nodes():
# Called by mode_edit_host() for new/clone/edit
def action_edit_host(mode, hostname, is_cluster):
- attributes = collect_attributes("host")
+ attributes = collect_attributes("host" if not is_cluster else
"cluster")
if is_cluster:
cluster_nodes = vs_cluster_nodes().from_html_vars("nodes")