Module: check_mk
Branch: master
Commit: 723e7c334f539dfbda918b982b2d9fd233adb5a0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=723e7c334f539d…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Sep 18 10:24:15 2015 +0200
wato_import.py minor fix: .wato file are now written
---
doc/treasures/wato_import.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/doc/treasures/wato_import.py b/doc/treasures/wato_import.py
index 5d8f17b..8a6ad35 100644
--- a/doc/treasures/wato_import.py
+++ b/doc/treasures/wato_import.py
@@ -83,3 +83,7 @@ for folder in folders:
ziel.write(ips)
ziel.write('})\n\n')
ziel.close()
+
+ wato = open(pathlokal + folder + '/.wato','w')
+ wato.write("{'attributes': {}, 'num_hosts': %d, 'title':
'%s'}\n" % ( len(folders[folder]), folder) )
+ wato.close()