Commit 67664a03 authored by Philip ABBET's avatar 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
......@@ -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']
......
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