Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
allgo
allgo
Commits
d9944795
Commit
d9944795
authored
Feb 02, 2017
by
BAIRE Anthony
Browse files
use shlex to split the command line
parent
b4a133d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker/controller.py
View file @
d9944795
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment