]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Fixing lib/webhooks/deploy.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 25 Jan 2017 10:20:47 +0000 (11:20 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 25 Jan 2017 10:20:47 +0000 (11:20 +0100)
lib/webhooks/deploy.py

index 4bb9bfd544df0f458bf15cb522e64e35ec6e3499..ebacf7be5d231bd77220c4670270a0ddc9f6891a 100644 (file)
@@ -19,7 +19,7 @@ import json
 # Own modules
 import webhooks
 
-from webhooks.common import pp
+from webhooks.common import pp, to_bytes
 
 __version__ = webhooks.__version__
 LOG = logging.getLogger(__name__)
@@ -174,7 +174,8 @@ class WebhookDeployApp(object):
 
         print("Content-Type: text/plain;charset=utf-8")
         print()
-        print("Python CGI läuft")
+        #print(to_bytes("Python CGI läuft"))
+        sys.stdout.buffer.write(to_bytes("Python CGI läuft.\n"))
 
         LOG.info("Starting ...")
         LOG.debug("Base directory: {!r}".format(self.base_dir))