consul-template
consul-template copied to clipboard
fileOrDefault method
Consul Template version
Run consul-template -v
to show the version. If you are not
running the latest version, please upgrade before submitting an
issue.
consul-template v0.32.0 (a926131)
Expected behavior
The fact that the file
function always returns an error if the file doesn't exist is a problem for me. I'd really like to have a fileOrDefault
version as an analog of the keyOrDefault
function.
Actual behavior
consul-template
crashes if the file doesn't exist.