Commit d9944795 authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

use shlex to split the command line

parent b4a133d7
......@@ -12,6 +12,7 @@ import json
import logging
import re
import os
import shlex
import signal
import socket
import sys
......@@ -942,7 +943,7 @@ class JobManager(Manager):
"$@" 2>&1 | cat >allgo.log
fi
""",
"job%d" % job.id, webapp.entrypoint] + job.param.split(),
"job%d" % job.id, webapp.entrypoint] + shlex.split(job.param),
labels = {"allgo.tmp_img": tmp_img or ""},
host_config = ctrl.sandbox.create_host_config(
......
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