Skip to content

Commit c191782

Browse files
authored
conda pack slug fix
1 parent 6cedf29 commit c191782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ads/opctl/conda/pack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121

2222
def main(pack_folder_path, manifest_file=None):
23-
slug = os.path.basename(pack_folder_path)
2423
manifest_path = (
2524
manifest_file or glob.glob(os.path.join(pack_folder_path, "*_manifest.yaml"))[0]
2625
)
@@ -47,6 +46,7 @@ def main(pack_folder_path, manifest_file=None):
4746
raise e
4847

4948
manifest = env["manifest"]
49+
slug = manifest.get("slug", os.path.basename(pack_folder_path))
5050
if not "type" in manifest:
5151
manifest["type"] = "published"
5252
new_env_info["manifest"] = manifest

0 commit comments

Comments
 (0)