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.cmdline
Commits
67664a03
Commit
67664a03
authored
Sep 19, 2017
by
Philip ABBET
Browse files
Update to the latest changes of beat.core
parent
a0356fee
Pipeline
#12370
failed with stage
in 1 minute and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/cmdline/experiments.py
View file @
67664a03
...
...
@@ -165,9 +165,7 @@ def run_experiment(configuration, name, force, use_docker, use_local):
if
use_docker
:
# load existing environments
host
=
Host
()
host
.
setup
(
raise_on_errors
=
False
)
environments
=
host
.
environments
host
=
Host
(
raise_on_errors
=
False
)
# can we execute it?
results
=
[]
...
...
@@ -179,7 +177,7 @@ def run_experiment(configuration, name, force, use_docker, use_local):
if
use_docker
:
env
=
value
[
'configuration'
][
'environment'
]
search_key
=
'%s (%s)'
%
(
env
[
'name'
],
env
[
'version'
])
if
search_key
not
in
environments
:
if
search_key
not
in
host
:
logger
.
error
(
"Cannot execute block `%s' on environment `%s': "
\
"environment was not found' - please install it"
,
key
,
search_key
)
...
...
@@ -221,7 +219,7 @@ def run_experiment(configuration, name, force, use_docker, use_local):
reindent
(
result
[
'user_error'
],
4
))
logger
.
error
(
" Captured system error:
\n
%s"
,
reindent
(
result
[
'system_error'
],
4
))
print
(
" Environment: %s"
%
'default environment'
)
logger
.
extra
(
" Environment: %s"
%
'default environment'
)
return
1
elif
use_docker
:
stats
=
result
[
'statistics'
]
...
...
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