We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60850e2 commit 9f4214eCopy full SHA for 9f4214e
ads/opctl/conda/cmds.py
@@ -200,13 +200,15 @@ def _create(
200
manifest["manifest"]["manifest_version"] = "1.0"
201
202
logger.info(f"Creating conda environment {slug}")
203
- conda_dep["manifest"].update(
204
- {
205
- k: manifest["manifest"][k]
206
- for k in manifest["manifest"]
207
- if manifest["manifest"][k]
208
- }
209
- )
+ manifest_dict = {
+ k: manifest["manifest"][k]
+ for k in manifest["manifest"]
+ if manifest["manifest"][k]
+ }
+ if "manifest" in conda_dep:
+ conda_dep["manifest"].update(manifest_dict)
210
+ else:
211
+ conda_dep["manifest"] = manifest_dict
212
logger.info(f"Updated conda environment manifest: {conda_dep.get('manifest')}")
213
214
if is_in_notebook_session() or NO_CONTAINER:
0 commit comments