mirror of
https://github.com/clearml/clearml-session
synced 2025-01-31 02:46:56 +00:00
Fix vault environment variable integration
This commit is contained in:
parent
ff8d97f347
commit
a5792ed82a
@ -632,6 +632,8 @@ def setup_user_env(param, task):
|
||||
param.get("default_docker", "").strip() or env.get('CLEARML_DOCKER_IMAGE', '')))
|
||||
for k, v in vault_environment.items():
|
||||
os.system("echo 'export {}=\"{}\"' >> ~/.profile".format(k, v))
|
||||
os.system("echo 'export {}=\"{}\"' >> ~/.bashrc".format(k, v))
|
||||
env[k] = str(v) if v else ""
|
||||
env['CLEARML_API_ACCESS_KEY'] = param.get("user_key")
|
||||
env['CLEARML_API_SECRET_KEY'] = param.get("user_secret")
|
||||
# set default folder for user
|
||||
|
Loading…
Reference in New Issue
Block a user