From 638331b5b89c807b40c23c1e6333845d9b7e169a Mon Sep 17 00:00:00 2001 From: Nathan Kuik Date: Thu, 14 Apr 2022 23:26:08 +0200 Subject: [PATCH] fix: add additional missing import in _default.py (#1018) Co-authored-by: arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com> --- google/auth/_default.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/google/auth/_default.py b/google/auth/_default.py index 5730e58d8..d038438d5 100644 --- a/google/auth/_default.py +++ b/google/auth/_default.py @@ -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)