Skip to content
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

fileOrDefault method #1825

Open
fsiler opened this issue Oct 24, 2023 · 0 comments
Open

fileOrDefault method #1825

fsiler opened this issue Oct 24, 2023 · 0 comments

Comments

@fsiler
Copy link

fsiler commented Oct 24, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant