UTF8 encode commands sent to executor socket
Required for python3. Change-Id: I9c6f22dfb9548673684810c61d1a6d39c657552a
This commit is contained in:
parent
16d96a02db
commit
04e6030f73
|
@ -71,7 +71,8 @@ class Executor(zuul.cmd.ZuulApp):
|
||||||
path = os.path.join(state_dir, 'executor.socket')
|
path = os.path.join(state_dir, 'executor.socket')
|
||||||
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||||
s.connect(path)
|
s.connect(path)
|
||||||
s.sendall('%s\n' % cmd)
|
cmd = '%s\n' % cmd
|
||||||
|
s.sendall(cmd.encode('utf8'))
|
||||||
|
|
||||||
def exit_handler(self):
|
def exit_handler(self):
|
||||||
self.executor.stop()
|
self.executor.stop()
|
||||||
|
|
Loading…
Reference in New Issue