Skip to content

Commit

Permalink
admin: fallback to "gecko" trust domain when repo_url is not passed (#…
Browse files Browse the repository at this point in the history
…1411)

This restores previous behaviour; while the shipit frontend passes a
repo url, shipitscript does not, which breaks automated firefox beta
releases.
  • Loading branch information
jcristau committed Mar 1, 2024
1 parent 6a65504 commit 9c78dce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/src/shipit_api/admin/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def get_trust_domain(repo_url, product):
if "xpi" == product:
return "xpi"
trust_domains = get_trust_domains()
if not repo_url:
# shipitscript doesn't pass a repo url, fall back to gecko in that case
return "gecko"
for trust_domain in trust_domains:
if repo_url in trust_domains[trust_domain]:
return trust_domain
Expand Down

0 comments on commit 9c78dce

Please sign in to comment.