From 04e6030f730ffd351bc526c468363207c6ae797c Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 8 Jun 2017 14:32:03 -0700 Subject: [PATCH] UTF8 encode commands sent to executor socket Required for python3. Change-Id: I9c6f22dfb9548673684810c61d1a6d39c657552a --- zuul/cmd/executor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zuul/cmd/executor.py b/zuul/cmd/executor.py index 931639f5ac..4fb4a59123 100755 --- a/zuul/cmd/executor.py +++ b/zuul/cmd/executor.py @@ -71,7 +71,8 @@ class Executor(zuul.cmd.ZuulApp): path = os.path.join(state_dir, 'executor.socket') s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) s.connect(path) - s.sendall('%s\n' % cmd) + cmd = '%s\n' % cmd + s.sendall(cmd.encode('utf8')) def exit_handler(self): self.executor.stop()