Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
71a5c5fd
Commit
71a5c5fd
authored
Mar 01, 2018
by
Samuel GAIST
Browse files
[scripts][worker] Remove use of Prefix
parent
7c092ddf
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/scripts/worker.py
View file @
71a5c5fd
...
...
@@ -65,8 +65,6 @@ from ..execution.docker import DockerExecutor
from
..dock
import
Host
from
..worker
import
WorkerController
from
beat.backend.python.utils
import
Prefix
stop
=
False
logger
=
None
...
...
@@ -237,11 +235,10 @@ def main(user_input=None):
# Check the prefix path
prefix
=
Prefix
(
args
[
'--prefix'
].
split
(
','
)
if
args
[
'--prefix'
]
is
not
None
else
'.'
)
for
p
in
prefix
.
paths
:
if
not
os
.
path
.
exists
(
p
):
logger
.
error
(
"Prefix not found at: '%s'"
,
p
)
return
1
prefix
=
args
[
'--prefix'
]
if
args
[
'--prefix'
]
is
not
None
else
'.'
if
not
os
.
path
.
exists
(
prefix
):
logger
.
error
(
"Prefix not found at: '%s'"
,
prefix
)
return
1
# Check the cache path
...
...
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