Skip to content

Commit 056cb5f

Browse files
authored
Merge pull request #258 from ekochetkov/main Connect to YDB with credentials from env
2 parents 3d250e9 + fe5a3e9 commit 056cb5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/basic_example_v1/basic_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def ensure_path_exists(driver, database, path):
312312

313313

314314
def run(endpoint, database, path):
315-
with ydb.Driver(endpoint=endpoint, database=database) as driver:
315+
with ydb.Driver(endpoint=endpoint, database=database, credentials=ydb.credentials_from_env_variables()) as driver:
316316
driver.wait(timeout=5, fail_fast=True)
317317

318318
with ydb.SessionPool(driver) as pool:

0 commit comments

Comments
 (0)