Module: check_mk
Branch: master
Commit: c420fc3f03d0046a05cab0d80a6456a8737f0634
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c420fc3f03d004…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Sep 15 09:11:32 2014 +0200
Removed two print statements
---
doc/treasures/notifications/multitech | 2 +-
doc/treasures/notifications/pushover | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/treasures/notifications/multitech
b/doc/treasures/notifications/multitech
index 019dc68..4ce59b1 100755
--- a/doc/treasures/notifications/multitech
+++ b/doc/treasures/notifications/multitech
@@ -122,7 +122,7 @@ url += urllib.urlencode([
try:
handle = urllib.urlopen(url)
response = handle.read().strip()
- print response
+ sys.stdout.write("%s\n" % response)
if response.startswith("ID:"):
sys.stdout.write("Successfully sent SMS to %s\n" % to)
else:
diff --git a/doc/treasures/notifications/pushover b/doc/treasures/notifications/pushover
index 521704f..ea6e767 100755
--- a/doc/treasures/notifications/pushover
+++ b/doc/treasures/notifications/pushover
@@ -63,5 +63,5 @@ headers = dict(response.getheaders())
status = headers.get('status')
code, explanation = status.split(None, 1)
if code != "200":
- print "Failed to notify via Pushover: %s, HTTP status is %s" %
(explanation, status)
+ sys.stdout.write("Failed to notify via Pushover: %s, HTTP status is %s\n" %
(explanation, status))
sys.exit(1)