Skip to content

Commit 60850e2

Browse files
committed
Fix errors found in tests.
1 parent f2142f8 commit 60850e2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ads/opctl/conda/cmds.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,13 @@ def _create(
182182
f"Preparing manifest. Manifest in the environment: {conda_dep.get('manifest')}"
183183
)
184184
manifest = _fetch_manifest_template()
185-
if not "name" in manifest:
185+
if "name" not in manifest:
186186
manifest["manifest"]["name"] = name
187187
manifest["manifest"]["slug"] = slug
188-
if not "type" in conda_dep["manifest"]:
189-
logger.info(f"Setting manifest to published")
188+
if "type" not in manifest:
189+
logger.info("Setting manifest to published")
190190
manifest["manifest"]["type"] = "published"
191-
if not "version" in conda_dep["manifest"]:
191+
if "version" not in manifest:
192192
manifest["manifest"]["version"] = version
193193
manifest["manifest"]["arch_type"] = "GPU" if gpu else "CPU"
194194

@@ -655,7 +655,7 @@ def _publish(
655655
if is_in_notebook_session() or NO_CONTAINER:
656656
# Set the CONDA_PUBLISH_TYPE environment variable so that the `type` attribute inside the manifest is not changed
657657
publish_type = os.environ.get("CONDA_PUBLISH_TYPE")
658-
command = "python {pack_script} --conda-path {pack_folder_path}"
658+
command = f"python {pack_script} --conda-path {pack_folder_path}"
659659
if publish_type:
660660
command = f"CONDA_PUBLISH_TYPE={publish_type} {command}"
661661
run_command(command, shell=True)

0 commit comments

Comments
 (0)