Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Wellbore
Lib
Wellbore-cloud
Wellbore-gcp-lib
Commits
16dfc5b5
Commit
16dfc5b5
authored
Oct 01, 2021
by
Siarhei Khaletski (EPAM)
🚩
Browse files
Credentials
parent
9132fe4d
Pipeline
#69380
passed with stages
in 1 minute and 1 second
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
osdu_gcp/storage/dask_storage_parameters.py
View file @
16dfc5b5
...
...
@@ -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'
:
t
ok
en
}
#
token = await gcp_store._get_access_token(tenant.project_id, tenant.bucket_name)
storage_options
=
{
'token'
:
ten
ant
.
credentials
}
base_directory
=
f
'
{
tenant
.
bucket_name
}
/
{
directory
}
'
if
directory
else
tenant
.
bucket_name
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment