Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Feb 7, 2025
1 parent 1158c41 commit 9b5c309
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions id/_internal/oidc/ambient.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ def detect_github(audience: str) -> str | None:

if resp.status != 200:
raise AmbientCredentialError(
f"GitHub: OIDC token request failed (code={resp.status}, "
f"body={resp.data.decode()!r})"
f"GitHub: OIDC token request failed (code={resp.status}, body={resp.data.decode()!r})"
)

try:
Expand Down Expand Up @@ -170,8 +169,7 @@ def detect_gcp(audience: str) -> str | None:

if resp.status != 200:
raise AmbientCredentialError(
f"GCP: OIDC token request failed (code={resp.status}, "
f"body={resp.data.decode()!r})"
f"GCP: OIDC token request failed (code={resp.status}, body={resp.data.decode()!r})"
)

oidc_token: str = resp.json().get("token")
Expand Down Expand Up @@ -211,8 +209,7 @@ def detect_gcp(audience: str) -> str | None:

if resp.status != 200:
raise AmbientCredentialError(
f"GCP: OIDC token request failed (code={resp.status}, "
f"body={resp.data.decode()!r})"
f"GCP: OIDC token request failed (code={resp.status}, body={resp.data.decode()!r})"
)

logger.debug("GCP: successfully requested OIDC token")
Expand Down

0 comments on commit 9b5c309

Please sign in to comment.