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 8535ef1 commit e16021dCopy full SHA for e16021d
ads/opctl/conda/cmds.py
@@ -638,8 +638,10 @@ def _publish(
638
)
639
except Exception:
640
raise RuntimeError(f"Could not pack environment {conda_slug}.")
641
- if "/" in conda_slug:
642
- raise ValueError("Invalid conda_slug. found `/` in slug name. Please use a different slug name.")
+ NOT_ALLOWED_CHARS = "@#$%^&*/"
+
643
+ if any(chr in conda_slug for chr in NOT_ALLOWED_CHARS):
644
+ raise ValueError(f"Invalid conda_slug. Found {NOT_ALLOWED_CHARS} in slug name. Please use a different slug name.")
645
pack_file = os.path.join(pack_folder_path, f"{conda_slug}.tar.gz")
646
if not os.path.exists(pack_file):
647
raise RuntimeError(f"Pack {pack_file} was not created.")
0 commit comments