From 1d4546bac5a682889618dc593b6e23e1db77df95 Mon Sep 17 00:00:00 2001 From: Dmitry Balabka Date: Thu, 19 Sep 2024 18:45:20 +0300 Subject: [PATCH] Fix tests --- dask_cloudprovider/gcp/instances.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dask_cloudprovider/gcp/instances.py b/dask_cloudprovider/gcp/instances.py index a92b2a35..843deffb 100644 --- a/dask_cloudprovider/gcp/instances.py +++ b/dask_cloudprovider/gcp/instances.py @@ -19,7 +19,7 @@ try: import googleapiclient.discovery - import google.auth.default + from google.auth import default as google_auth_default from googleapiclient.errors import HttpError except ImportError as e: msg = ( @@ -672,7 +672,7 @@ def refresh_client(self): ) else: # Obtain Application Default Credentials - credentials, _ = google.auth.default() + credentials, _ = google_auth_default() # Use the credentials to build a service client return googleapiclient.discovery.build(