From c33e17a4ddbe9480174ed70da179fefcbee6bb55 Mon Sep 17 00:00:00 2001 From: Drew Banin Date: Tue, 3 Oct 2017 11:23:39 -0400 Subject: [PATCH] add scope to service account json creds initializer --- dbt/adapters/bigquery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/adapters/bigquery.py b/dbt/adapters/bigquery.py index e6f45402873..41416bebf09 100644 --- a/dbt/adapters/bigquery.py +++ b/dbt/adapters/bigquery.py @@ -99,7 +99,7 @@ def get_bigquery_credentials(cls, config): elif method == 'service-account-json': details = config.get('keyfile_json') - return creds.from_service_account_info(details) + return creds.from_service_account_info(details, scopes=cls.SCOPE) error = ('Invalid `method` in profile: "{}"'.format(method)) raise dbt.exceptions.FailedToConnectException(error)