perf: If the cloud vault initialization fails, the task will not be executed.

This commit is contained in:
halo
2024-11-19 22:08:03 +08:00
committed by Eric_Lee
parent 374a102bc4
commit cfadbc164c
5 changed files with 21 additions and 2 deletions

View File

@@ -3,12 +3,16 @@ from .entries import build_entry
from .service import VaultKVClient
from ..base import BaseVault
__all__ = ['Vault']
from ...const import VaultTypeChoices
logger = get_logger(__name__)
__all__ = ['Vault']
class Vault(BaseVault):
type = VaultTypeChoices.hcp
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.client = VaultKVClient(