Skip to content

Commit 015ef63

Browse files
authored
fix manifest setting
1 parent ae8f4f5 commit 015ef63

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ads/opctl/conda/cmds.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,13 @@ def _create(
176176

177177
os.makedirs(pack_folder_path, exist_ok=True)
178178

179-
if not manifest:
180-
manifest = _fetch_manifest_template()
181-
if not "name" in manifest:
179+
manifest = _fetch_manifest_template()
180+
if not "name" in conda_dep["manifest"]:
182181
manifest["manifest"]["name"] = name
183182
manifest["manifest"]["slug"] = slug
184-
if not "type" in manifest:
183+
if not "type" in conda_dep["manifest"]:
185184
manifest["manifest"]["type"] = "published"
186-
if not "version" in manifest:
185+
if not "version" in conda_dep["manifest"]:
187186
manifest["manifest"]["version"] = version
188187
manifest["manifest"]["arch_type"] = "GPU" if gpu else "CPU"
189188

0 commit comments

Comments
 (0)