Skip to content

Commit dff7303

Browse files
committed
make _update_driver_config common method to all credentials
1 parent e3a2f98 commit dff7303

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ydb/credentials.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ def get_auth_token(self) -> str:
4545
return token
4646
return ""
4747

48+
def _update_driver_config(self, driver_config):
49+
pass
50+
4851

4952
class OneToManyValue(object):
5053
def __init__(self):

ydb/driver.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,7 @@ def get_config(
234234

235235
driver_config._update_attrs_by_kwargs(**kwargs)
236236

237-
if isinstance(driver_config.credentials, credentials_impl.StaticCredentials):
238-
driver_config.credentials._update_driver_config(driver_config)
237+
driver_config.credentials._update_driver_config(driver_config)
239238

240239
return driver_config
241240

0 commit comments

Comments
 (0)