Skip to content

Commit

Permalink
fix(#6694): Remove async code
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Oct 2, 2024
1 parent 7331d4d commit d6d426e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/scripts/wave_singularity.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
data["toweraccesstoken"] = platform_pat
else:
logger.warning("'platform_pat' not set, no auth to wave back end")
async with httpx.asyncclient() as client:
response = await client.post(
with httpx.client() as client:
response = client.post(
url=url,
json=data,
headers={"content-type": "application/json"},
Expand All @@ -29,8 +29,8 @@
if "digest" not in layers[0]:
raise httpexception(status_code=400, detail="no 'digest' in first layer found")
digest = layers[0]["digest"].replace("sha256:", "")
url = f"https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/{digest[:2]}/{digest}/data"
return url
container_url = f"https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/{digest[:2]}/{digest}/data"
print(container_url)

else:
raise httpexception(status_code=response.status_code, detail=response.text)

0 comments on commit d6d426e

Please sign in to comment.