Skip to content

Commit

Permalink
fix: add additional missing import in _default.py (#1018)
Browse files Browse the repository at this point in the history
Co-authored-by: arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com>
  • Loading branch information
nkuik and arithmetic1728 authored Apr 14, 2022
1 parent 0a0e298 commit 638331b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions google/auth/_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ def _get_external_account_credentials(
"Failed to load external account credentials from {}".format(filename)
)
if request is None:
import google.auth.transport.requests

request = google.auth.transport.requests.Request()

return credentials, credentials.get_project_id(request=request)
Expand Down

0 comments on commit 638331b

Please sign in to comment.