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(