Skip to content

Commit

Permalink
make _update_driver_config common method to all credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvoleg committed Oct 4, 2024
1 parent e3a2f98 commit dff7303
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ydb/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def get_auth_token(self) -> str:
return token
return ""

def _update_driver_config(self, driver_config):
pass


class OneToManyValue(object):
def __init__(self):
Expand Down
3 changes: 1 addition & 2 deletions ydb/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,7 @@ def get_config(

driver_config._update_attrs_by_kwargs(**kwargs)

if isinstance(driver_config.credentials, credentials_impl.StaticCredentials):
driver_config.credentials._update_driver_config(driver_config)
driver_config.credentials._update_driver_config(driver_config)

return driver_config

Expand Down

0 comments on commit dff7303

Please sign in to comment.