-
Notifications
You must be signed in to change notification settings - Fork 781
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 use secret in variable #1418
Comments
Thanks for filing this issue @phemmer and sorry for the delayed response. It looks like this should be easy to reproduce and we'll get to work on it as soon as we can get it in our queue. Thanks. |
Having the same issue |
Thanks for the prompt @timpur, I'll try to get this fixed in the next release. |
Problem is the Changing the returned value from a pointer to a zero value for that struct sort of fixes it. It doesn't give the error, but it changes the returned values in ways that would break compatibility. I'm not sure of a solution yet, but that is the problem. |
So it looks like nil wasn't the problem. It was due to the typing of the nil pointer. If the function signature is typed or the returned value is typed to the actual data type it gives that error. If the return signature is IE. I think this will end up being a pretty simple fix. |
PR with fix pushed up for review. Fix will be in next release (v0.28.0). |
Consul Template version
consul-template v0.25.1 (b11fa80)
Configuration
Command
Debug output
Expected behavior
Dump content of
.Data
without error.Actual behavior
What actually happened?
Steps to reproduce
References
Additional info
Example 1 ✔️
Example 2 ✔️
Example 3 ✔️
Example 4 ❌
The text was updated successfully, but these errors were encountered: