Compare commits
No commits in common. "aef1f4e48236ba7b6b02d2773320668cda427094" and "ef02b23111788ce3e8bbedeac4b7758f9a7b7a3b" have entirely different histories.
aef1f4e482
...
ef02b23111
|
|
@ -2,7 +2,7 @@ pipeline {
|
|||
agent { label 'agent_smith' }
|
||||
|
||||
stages {
|
||||
stage('recreate > build > run container') {
|
||||
stage('recreate > build > reun container') {
|
||||
steps {
|
||||
sh "docker-compose up -d --force-recreate --build parse_saby"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ class SimpleDB:
|
|||
def __init__(self):
|
||||
self._create_db_pool_from_vault()
|
||||
self.pool
|
||||
#init_oracle_client() Если работает нужно убрать!
|
||||
|
||||
def _handle_vault_exception(self, e: Exception, message: str):
|
||||
"""
|
||||
|
|
@ -43,11 +44,6 @@ class SimpleDB:
|
|||
)
|
||||
except Exception as e:
|
||||
self._handle_vault_exception(e, "Ошибка при создание покдлючения c Vault")
|
||||
|
||||
# Проверка авторизации в Vault
|
||||
if not client.is_authenticated():
|
||||
raise Exception("Vault authentication failed")
|
||||
|
||||
try:
|
||||
# Чтение секретов из Vault
|
||||
secret_read_response = client.secrets.kv.v2.read_secret_version(
|
||||
|
|
|
|||
Loading…
Reference in New Issue