consul-template icon indicating copy to clipboard operation
consul-template copied to clipboard

fileOrDefault method

Open fsiler opened this issue 1 year ago • 0 comments

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.

fsiler avatar Oct 24 '23 19:10 fsiler