Skip to content

Commit

Permalink
apply review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rifqiyan committed Apr 17, 2024
1 parent 370b9e5 commit 213bc6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/axolotl/utils/vessl_.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@


def setup_vessl_env_vars(cfg: DictDefault):
if cfg.vessl_credential_path:
return

# VESSL_RUN_INITIAL_CONFIG is a variable that contain path to default credential inside a VESSL Run.
# Currently there is no docs regarding this variable, but it exists inside the container.
# Ref: https://screen.yanolja.in/lrTGow4Pr8eXhAai.png
credential_path = os.environ.get("VESSL_RUN_INITIAL_CONFIG")
if credential_path and not cfg.vessl_credential_path:
if credential_path:
cfg.vessl_credential_path = credential_path

0 comments on commit 213bc6a

Please sign in to comment.