Module: check_mk
Branch: master
Commit: 927dad26b2fdbade44afd26223985437e8daf4b9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=927dad26b2fdba…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 22 23:23:00 2012 +0100
WATO: move comment to top of hosts.mk
---
web/htdocs/wato.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 7cbd719..1795a19 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -602,6 +602,7 @@ def save_hosts(folder = None):
make_nagios_directories(dirname)
out = create_user_file(filename, 'w')
+ out.write("# Written by WATO\n# encoding: utf-8\n\n")
hosts = folder.get(".hosts", [])
if len(hosts) == 0:
@@ -671,7 +672,6 @@ def save_hosts(folder = None):
custom_macros[nag_varname] = {}
custom_macros[nag_varname][hostname] = nagstring
- out.write("# Written by WATO\n# encoding: utf-8\n\n")
if len(all_hosts) > 0:
out.write("all_hosts += [\n")
for entry in all_hosts: