Module: check_mk
Branch: master
Commit: 47f9a73b0056e38ecb23db839e0f1f4da8ad6b59
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=47f9a73b0056e3…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Jan 31 14:35:41 2013 +0100
notify.py: fixed creation of spoolsfiles
---
modules/notify.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/notify.py b/modules/notify.py
index 15a9685..be1116e 100644
--- a/modules/notify.py
+++ b/modules/notify.py
@@ -200,8 +200,7 @@ def create_spoolfile(data):
file_path = "%s/%0.2f_%s" % (target_dir, time.time(), uuid.uuid1())
notify_log("Creating spoolfile: %s" % file_path)
# TODO: pprint entfernen
- # file(file_path,"w").write(pprint.pformat(data))
- file(file_path,"w").write(data)
+ file(file_path,"w").write(pprint.pformat(data))
def get_readable_rel_date(timestamp):
try: