Commit 7b9ae689 authored by jacques blier's avatar jacques blier

Update docker.py to decode utf-8 encoded lines.

parent 1c878517
......@@ -20,7 +20,7 @@ def docker_ps(running_only=False):
lines = result.stdout.splitlines()
# container name is supposed to be the last column
assert lines[0].strip().endswith('NAMES')
return [line.strip().split(' ')[-1] for line in lines[1:]]
return [line.decode('utf-8').strip().split(' ')[-1] for line in lines[1:]]
def docker_tryrun(imgname, containername=None, opts='', mounts=None, cmd='', restart=True):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment