issue #482: another Py3 fix

pull/618/head
David Wilson 5 years ago
parent 1cad04185b
commit 8bac1cf368

@ -457,7 +457,7 @@ class DockerizedSshDaemon(object):
def check_processes(self): def check_processes(self):
args = ['docker', 'exec', self.container_name, 'ps', '-o', 'comm='] args = ['docker', 'exec', self.container_name, 'ps', '-o', 'comm=']
counts = {} counts = {}
for comm in subprocess__check_output(args).splitlines(): for comm in subprocess__check_output(args).decode().splitlines():
comm = comm.strip() comm = comm.strip()
counts[comm] = counts.get(comm, 0) + 1 counts[comm] = counts.get(comm, 0) + 1

Loading…
Cancel
Save