Skip to content

Commit ea83b1a

Browse files
authored
Update name fetch logic
1 parent c191782 commit ea83b1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ads/opctl/conda/cmds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _check_job_image_exists(gpu: bool) -> None:
8080
def _get_name(name: str, env_file: str) -> str:
8181
if not name and env_file:
8282
with open(env_file) as f:
83-
name = yaml.safe_load(f.read()).get("name", None)
83+
name = yaml.safe_load(f.read()).get("manifest").get("name", None)
8484
if not name:
8585
raise ValueError(
8686
"Either specify environment name in environment yaml or with `--name`."

0 commit comments

Comments
 (0)