Module: check_mk
Branch: master
Commit: b3c6e2676292cf83c64e80ca79fc8ac7eb9eee9d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b3c6e2676292cf…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jul 27 23:37:14 2018 +0200
Fixed lost host attributes after refcktoring
Change-Id: I422edc914a7c5b700c5a18a9025e08a520966a55
---
cmk/gui/wato/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk/gui/wato/__init__.py b/cmk/gui/wato/__init__.py
index 951ab20..a55e748 100644
--- a/cmk/gui/wato/__init__.py
+++ b/cmk/gui/wato/__init__.py
@@ -1546,7 +1546,7 @@ class HostMode(WatoMode):
configure_attributes(
new=self._mode != "edit",
- hosts={self._host.name(): self._host} if self._mode == "edit" else
{},
+ hosts={self._host.name(): self._host} if self._mode != "new" else
{},
for_what="host" if not self._is_cluster() else
"cluster",
parent = watolib.Folder.current()
)