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
can't get key /something/with_an_underscore from env backend #531
Comments
For the env backend every _ is replaced with an / at the moment. Your key is /kafka/broker/id/kafka1. |
This bit me too, I have an existing docker image with which works together with the consul backend, containing When you request for a key containing an underscore, that's probably what you want the backend to return. What would happen if you modified env/client.go like this: if strings.HasPrefix(envKey, k) {
envPostfix := envKey[len(k):]
vars[key + clean(envPostfix)] = envValue
} instead of At last the integration tests in Update: above isn't quite correct, keys returned have trailing/intermediate slashes, I'll try to make a proper pull request for this... |
Posted pull request #567, let me know what you think about it. |
I have a key defined as
/kafka/broker_id/host1
and I can't find a way to set it from theenv
backend.Is there no way ?
I've tried export KAFKA_BROKER_ID_KAFKA1=... but I get (with
-log-level debug
)Is there a workaround, apart from removing the underscores in my keys?
The text was updated successfully, but these errors were encountered: