updates gen_openapi script to check vault version rather than VAULT_LICENSE (#31002)

This commit is contained in:
Jordan Reimer 2025-06-19 10:35:32 -06:00 committed by GitHub
parent a6ab9bed1d
commit 36e26880fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,7 +89,8 @@ vault secrets enable "totp"
vault secrets enable "transit"
# Enable enterprise features
if [[ -n "${VAULT_LICENSE:-}" ]]; then
# Check if vault version contains +ent
if vault version | grep -q "+ent"; then
vault secrets enable "keymgmt"
vault secrets enable "kmip"
vault secrets enable "transform"