Module: check_mk
Branch: master
Commit: 367782d867199a78cb0dc12029d93809f5efc41f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=367782d867199a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed May 17 14:50:44 2017 +0200
Fixed bug introduced yesterday: Host tags of hosts in a folder were using same host tags
Change-Id: Ieefb91415ad790075232336e4c96cac59c58aeda
---
web/htdocs/watolib.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index fac4fc9..ddc9ecf 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -1448,7 +1448,7 @@ class CREFolder(BaseFolder):
def effective_attributes(self):
if self._effective_attributes != None:
- return self._effective_attributes # cached :-)
+ return self._effective_attributes.copy() # cached :-)
effective = {}
for folder in self.parent_folder_chain():
@@ -1461,7 +1461,7 @@ class CREFolder(BaseFolder):
if attrname not in effective:
effective.setdefault(attrname, host_attribute.default_value())
- self._effective_attributes = effective
+ self._effective_attributes = effective.copy()
return effective