File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 18
18
19
19
from concurrent import futures
20
20
import logging
21
- import pkg_resources
21
+ import pkg_resources # Note this is used after copybara replacement
22
22
import os
23
23
from typing import List , Optional , Type , Union
24
24
@@ -72,14 +72,14 @@ def _set_project_as_env_var_or_google_auth_default(self):
72
72
credentials = self ._credentials ,
73
73
)
74
74
self ._project = project_id
75
- return project_id
76
75
except Exception :
77
76
logging .getLogger (__name__ ).warning (
78
77
"Failed to convert project number to project ID." , exc_info = True
79
78
)
80
- return project_number
79
+ self . _project = project_number
81
80
else :
82
- _ , project = google .auth .default ()
81
+ credentials , project = google .auth .default ()
82
+ self ._credentials = self ._credentials or credentials
83
83
self ._project = project
84
84
85
85
if not self ._credentials :
You can’t perform that action at this time.
0 commit comments