Module: check_mk
Branch: master
Commit: 31c60ac9fc2969847066f701c3c929b06eafddda
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=31c60ac9fc2969…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 13 16:54:05 2013 +0100
mkeventd: Fixed encoding of actions scripts
---
mkeventd/bin/mkeventd | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mkeventd/bin/mkeventd b/mkeventd/bin/mkeventd
index b23ee8b..1caae3c 100755
--- a/mkeventd/bin/mkeventd
+++ b/mkeventd/bin/mkeventd
@@ -2327,7 +2327,7 @@ def send_email(to, subject, body):
os.popen("mail -s '%s' '%s'" % (shell_escape(subject),
shell_escape(to)), "w").write(body)
def execute_script(body):
- os.popen("/bin/bash", "w").write(body)
+ os.popen("/bin/bash", "w").write(body.encode('utf-8'))
#.