Skip to content
Snippets Groups Projects
Commit 04a9c781 authored by Valentin David's avatar Valentin David Committed by Valentin David
Browse files

Use relative path to project directory for remote execution certificates/keys

parent 914ecb72
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,16 @@ class SandboxRemote(Sandbox):
"remote-execution configuration. Your config is missing '{}'."
.format(str(provenance), tls_keys, key))
def resolve_path(path):
if basedir and path:
return os.path.join(basedir, path)
else:
return path
for key in tls_keys:
if key in remote_config['execution-service']:
remote_config['execution-service'][key] = resolve_path(remote_config['execution-service'][key])
spec = RemoteExecutionSpec(remote_config['execution-service'],
remote_config['storage-service'],
remote_exec_action_config)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment