Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions conda_forge_admin_requests/access_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ def _process_request_for_feedstock(

for resource in resources:
register_ci_cmd.extend(["--cirun-resources", resource])
assert resource.startswith("cirun-openstack"), f"Unknown resource {resource}"
assert resource.startswith("cirun-"), f"Unknown resource {resource}"

# this part is specific to github.com/Quansight/open-gpu-server
if all(resource.startswith("cirun-openstack") for resource in resources):
for key, value in DEFAULT_CIRUN_OPENSTACK_VALUES.items():
for arg in value:
Expand Down Expand Up @@ -255,7 +256,7 @@ def check(request: Dict[str, Any]) -> None:
resources = request["resources"]
assert resources, "Empty resources"
for resource in resources:
assert resource.startswith("cirun-openstack")
assert resource.startswith("cirun-")

if action == "travis":
assert not request.get("revoke", False)
Expand Down
Loading