Skip to content
Merged
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 @@ -74,11 +74,10 @@ 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();
return environment.getProperty(
AZURE_KEYVAULT_PREFIX + normalizedName + AZURE_KEYVAULT_ENABLED, Boolean.class, true)
&& environment.getProperty(AZURE_KEYVAULT_PREFIX + normalizedName + AZURE_KEYVAULT_VAULT_URI) != null
&& isKeyVaultClientAvailable();
}

/**
Expand Down