From ab317d2c6bfb4e6e6ec965cc352688e4d4f8ce86 Mon Sep 17 00:00:00 2001 From: Dmitry Balabka Date: Thu, 19 Sep 2024 18:48:49 +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 843deffb..625b13e4 100644 --- a/dask_cloudprovider/gcp/instances.py +++ b/dask_cloudprovider/gcp/instances.py @@ -19,7 +19,6 @@ try: import googleapiclient.discovery - from google.auth import default as google_auth_default from googleapiclient.errors import HttpError except ImportError as e: msg = ( @@ -671,8 +670,9 @@ def refresh_client(self): ) ) else: + import google.auth # Obtain Application Default Credentials - credentials, _ = google_auth_default() + credentials, _ = google.auth.default() # Use the credentials to build a service client return googleapiclient.discovery.build(