Skip to content

Commit 98caf0b

Browse files
committed
Fix tests
1 parent 1d4546b commit 98caf0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dask_cloudprovider/gcp/instances.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
try:
2121
import googleapiclient.discovery
22-
from google.auth import default as google_auth_default
2322
from googleapiclient.errors import HttpError
2423
except ImportError as e:
2524
msg = (
@@ -671,8 +670,9 @@ def refresh_client(self):
671670
)
672671
)
673672
else:
673+
import google.auth
674674
# Obtain Application Default Credentials
675-
credentials, _ = google_auth_default()
675+
credentials, _ = google.auth.default()
676676

677677
# Use the credentials to build a service client
678678
return googleapiclient.discovery.build(

0 commit comments

Comments
 (0)