Commit 16dfc5b5 authored by Siarhei Khaletski (EPAM)'s avatar Siarhei Khaletski (EPAM) 🚩
Browse files

Credentials

parent 9132fe4d
Pipeline #69380 passed with stages
in 1 minute and 1 second
......@@ -7,8 +7,8 @@ from .blob_storage_gcp import GCloudAioStorage
async def get_dask_storage_parameters(tenant: Tenant, directory: Optional[str] = None) -> DaskStorageParameters:
gcp_store = GCloudAioStorage(service_account_file=tenant.credentials)
token = await gcp_store._get_access_token(tenant.project_id, tenant.bucket_name)
storage_options = {'token': token}
#token = await gcp_store._get_access_token(tenant.project_id, tenant.bucket_name)
storage_options = {'token': tenant.credentials}
base_directory = f'{tenant.bucket_name}/{directory}' if directory else tenant.bucket_name
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment