Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dbalabka committed Sep 19, 2024
1 parent 1d4546b commit ab317d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dask_cloudprovider/gcp/instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit ab317d2

Please sign in to comment.