From 2edcc1161356ecccbda4b76ec2f0df4911f75b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=B2?= Date: Mon, 25 Aug 2025 16:17:29 +0500 Subject: [PATCH] test --- app/working_database.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/working_database.py b/app/working_database.py index 39fd24e..86e064d 100644 --- a/app/working_database.py +++ b/app/working_database.py @@ -1,10 +1,13 @@ -from os import getenv +from os import getenv, environ import hvac + def connect_hvac(): + for key, value in environ.items(): + print(f"{key}={value}") client = hvac.Client( url='https://vlt.dataekb.ru:8222', - token= getenv('VAULT_TOKEN'), + token= environ.get('VAULT_TOKEN'), ) print(f"Token exists: {bool(getenv('VAULT_TOKEN'))}") print(f"Authenticated: {client.is_authenticated()}")