Module: check_mk
Branch: master
Commit: 57ceba9af5431edf3d29a1ad71b4fd2ab904d07f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=57ceba9af5431e…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Dec 12 16:55:28 2011 +0100
WATO: Fixed initialization in API function update_host_attributes()
---
web/htdocs/wato.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 0d71234..a5bda50 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -9720,6 +9720,11 @@ class API:
# Update the attributes of the given host and returns the resulting host attributes
# which have been persisted
def update_host_attributes(self, host, attr):
+ # Initialize attributes and load all folders
+ declare_host_tag_attributes()
+ declare_site_attribute()
+ load_all_folders()
+
folder = g_folders.get(host["path"])
load_hosts(folder)
folder[".hosts"][host["name"]].update(attr)