Skip to content

Commit 21a0f3b

Browse files
committed
fix the slug
1 parent 48332d1 commit 21a0f3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ads/opctl/backend/local.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -718,9 +718,8 @@ def predict(self) -> None:
718718
conda_slug, conda_path = self._get_conda_info_from_runtime(
719719
artifact_dir=artifact_directory
720720
)
721-
if not conda_slug and conda_path:
722-
conda_slug = conda_path.split("/")[-1]
723-
self.config["execution"]["conda_slug"] = conda_slug
721+
if 'conda_slug' not in self.config["execution"]:
722+
self.config["execution"]["conda_slug"] = conda_path.split("/")[-1] if conda_path else conda_slug
724723

725724
self.config["execution"]["image"] = ML_JOB_IMAGE
726725

0 commit comments

Comments
 (0)