return project id as str, not bytes (#6303)

This commit is contained in:
Shunsuke Ohashi
2023-07-28 10:29:22 +09:00
committed by GitHub
parent 55690db1d8
commit 1b064da901

View File

@@ -63,7 +63,7 @@ class BigQueryGCE(BigQuery):
return requests.get(
"http://metadata/computeMetadata/v1/project/project-id",
headers={"Metadata-Flavor": "Google"},
).content
).text
def _get_bigquery_service(self):
credentials = gce.AppAssertionCredentials(scope="https://www.googleapis.com/auth/bigquery")