-
Notifications
You must be signed in to change notification settings - Fork 490
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
applyEnvOverrides fails to override array elements #348
Comments
Signed-off-by: Jon Seymour <[email protected]>
I guess the same error applies also to influxdb: https://github.com/influxdata/influxdb/blob/master/cmd/influxd/run/config.go |
Yes, it would. I am happy to cross-port the fix back to influx. |
@offlinehacker actually, right now it isn't a problem for influxdb because in the config language, arrays and slices are only ever used at the struct level (e.g. [[udp]]) never at the field level and the overrides do work at the struct level. It would be a problem if this ever changed. |
The following environment override:
doesn't have the expected effect.
An attempt is made to ecursively apply overrides to array/slice elements, but the attempt fails because the recursive call returns early because the reflect.Value being operated on by the recursive call is not a struct.
The text was updated successfully, but these errors were encountered: