Skip to content

Commit 68f9ad6

Browse files
committed
Merge pull request #2813 from mboersma/fix-cli-unicode
fix(client): encode unicode properly for apps:run
2 parents e885b4e + 047df02 commit 68f9ad6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scheduler/fleet.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ def _create_container(self, name, image, command, unit, **kwargs):
116116
entrypoint = kwargs.get('entrypoint')
117117
if entrypoint:
118118
l.update({'entrypoint': '{}'.format(entrypoint)})
119+
# encode command as utf-8
120+
if isinstance(l.get('command'), basestring):
121+
l['command'] = l['command'].encode('utf-8')
119122
# construct unit from template
120123
for f in unit:
121124
f['value'] = f['value'].format(**l)

0 commit comments

Comments
 (0)