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
aef1f9ec
Commit
aef1f9ec
authored
Apr 20, 2018
by
Samuel GAIST
Browse files
[execution][docker] Fix key search in dictionaries
parent
4d265145
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/execution/docker.py
View file @
aef1f9ec
...
...
@@ -227,7 +227,7 @@ class DockerExecutor(RemoteExecutor):
database_paths
=
{}
if
not
self
.
data
.
has_key
(
'datasets_root_path'
)
:
if
'datasets_root_path'
not
in
self
.
data
:
for
db_name
in
self
.
databases
.
keys
():
json_path
=
os
.
path
.
join
(
root_folder
,
db_name
+
'.json'
)
...
...
@@ -269,7 +269,7 @@ class DockerExecutor(RemoteExecutor):
databases_container
.
add_volume
(
databases_configuration_path
,
'/beat/prefix'
)
databases_container
.
add_volume
(
self
.
cache
,
'/beat/cache'
)
if
not
self
.
data
.
has_key
(
'datasets_root_path'
)
:
if
'datasets_root_path'
not
in
self
.
data
:
for
db_name
,
db_path
in
database_paths
.
items
():
databases_container
.
add_volume
(
db_path
,
os
.
path
.
join
(
'/databases'
,
db_name
))
else
:
...
...
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