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

Fix consul value fetch #145

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fromanator
Copy link

This is a proposed fix for the issue I raised in #144

Here I choose to not change the contract provided by the Reloadable interface, since it wouldn't make sense in other contexts.

Instead in ConsulConfigurationSourceBuilder you can optionally provide an Environment which will be used to only fetch values given your Environment context instead of all of the values in Consul. If you don't provide an Environment it defaults back to it's old behavior.

@norbertpotocki
Copy link
Member

Hey Andrew,

I was wondering if you could update your PR to make it work with #148. Sorry for taking so long to release this but I had a lot of distractions recently.

@norbertpotocki norbertpotocki added this to the v.5.0.0 milestone Jun 3, 2016
MaartenR pushed a commit to MaartenR/cfg4j that referenced this pull request Aug 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants