Skip to content

Commit fb4a9a4

Browse files
authored
fix published type
1 parent 015ef63 commit fb4a9a4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ads/opctl/conda/cmds.py

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

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

179+
logger.info(f"Preparing manifest. Manifest in the environment: {conda_dep.get('manifest')}")
179180
manifest = _fetch_manifest_template()
180181
if not "name" in conda_dep["manifest"]:
181182
manifest["manifest"]["name"] = name
182183
manifest["manifest"]["slug"] = slug
183184
if not "type" in conda_dep["manifest"]:
185+
logger.info(f"Setting manifest to published")
184186
manifest["manifest"]["type"] = "published"
185187
if not "version" in conda_dep["manifest"]:
186188
manifest["manifest"]["version"] = version
@@ -195,6 +197,7 @@ def _create(
195197

196198
logger.info(f"Creating conda environment {slug}")
197199
conda_dep["manifest"].update({k: manifest["manifest"][k] for k in manifest["manifest"] if manifest["manifest"][k]})
200+
logger.info(f"Updated conda environment manifest: {conda_dep.get('manifest')}")
198201

199202
if is_in_notebook_session() or NO_CONTAINER:
200203
command = f"conda env create --prefix {pack_folder_path} --file {os.path.abspath(os.path.expanduser(env_file))}"
@@ -681,6 +684,8 @@ def _publish(
681684
publish_slug,
682685
)
683686
manifest["pack_uri"] = pack_uri
687+
else:
688+
manifest["type"] = "published"
684689

685690
with open(manifest_location, "w") as f:
686691
yaml.safe_dump(env, f)

0 commit comments

Comments
 (0)