Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,12 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp
* @return true if the key vault is enabled, false otherwise.
*/
private boolean isKeyVaultEnabled(ConfigurableEnvironment environment, String normalizedName) {
if (environment.getProperty(AZURE_KEYVAULT_PREFIX + normalizedName + AZURE_KEYVAULT_VAULT_URI) == null) {
return false;
}
return environment.getProperty(AZURE_KEYVAULT_PREFIX + normalizedName + AZURE_KEYVAULT_ENABLED,
Boolean.class, true) && isKeyVaultClientAvailable();
final String normalizedPrefix = AZURE_KEYVAULT_PREFIX + normalizedName;
return environment.getProperty(normalizedPrefix + AZURE_KEYVAULT_ENABLED,
Boolean.class, true) && environment.getProperty(normalizedPrefix + AZURE_KEYVAULT_VAULT_URI) != null
&& isKeyVaultClientAvailable();
}

/**
* Determine whether or not multiple key vaults are enabled.
*
Expand Down