Skip to content

Commit 2af939e

Browse files
committed
Merge pull request #480 from mboersma/fix-response-encoding
fix(scheduler): handle pod log response as utf-8
2 parents 60041c5 + 67c1995 commit 2af939e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rootfs/scheduler/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,9 @@ def run(self, name, image, entrypoint, command, **kwargs):
486486
data = response.text
487487
pod = response.json()
488488
if pod['status']['phase'] == 'Succeeded':
489-
log = self._pod_log(appname, name).text
489+
response = self._pod_log(appname, name)
490+
response.encoding = 'utf-8' # defaults to "ISO-8859-1" otherwise...
491+
log = response.text
490492
self._delete_pod(appname, name)
491493
return 0, log
492494
if pod['status']['phase'] == 'Running':

0 commit comments

Comments
 (0)