perf: 优化 vault 配置 (#11313)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-08-17 12:12:58 +08:00
committed by GitHub
parent a084bc9962
commit b20abb494f
9 changed files with 14 additions and 24 deletions

View File

@@ -29,7 +29,7 @@ class VaultTestingAPI(GenericAPIView):
def post(self, request):
config = self.get_config(request)
config['VAULT_TYPE'] = settings.VAULT_TYPE
config['VAULT_ENABLED'] = settings.VAULT_ENABLED
try:
client = get_vault_client(raise_exception=True, **config)
ok, error = client.is_active()