Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnvVarContextResolver returns full expression string instead of fallback value #472

Open
kfh opened this issue Jan 27, 2025 · 0 comments
Open

Comments

@kfh
Copy link

kfh commented Jan 27, 2025

I'm using HOCON as the configuration file format.

A short extract:

kafka {
  bootstrapServers = "${{ env:BOOTSTRAPSERVERS:-fallback }}"
}

When the BOOTSTRAPSERVERS env var is defined the correct value is returned. When it's missing the whole expression string is returned instead of the fallback value: ${{ env:BOOTSTRAPSERVERS:-fallback }}.

This was not an issue with the EnvOrSystemPropertyPreprocessor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant