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

Template: use keyOrDefault instead of key_or_default #2066

Closed
gokhansengun opened this issue Dec 7, 2016 · 2 comments
Closed

Template: use keyOrDefault instead of key_or_default #2066

gokhansengun opened this issue Dec 7, 2016 · 2 comments
Labels
theme/api HTTP API and SDK issues theme/template

Comments

@gokhansengun
Copy link

Details

Nomad v0.5.0
Linux, Ubuntu, 4.4.0-31-generic, x86_64

Issue

Using the template stanza, deprecated function key_or_default is required instead of keyOrDefault.

Using a config like below in the template file;

global
    maxconn {{keyOrDefault "lbs/maxconn" "1000"}}

produces following error

Killing task: consul-template: template: template: haproxy.ctmpl:2: function "keyOrDefault" not defined

It obviously seems to be related with the packaged consul-template version. Opening this to track for next versions.

@dadgar dadgar added theme/api HTTP API and SDK issues theme/template labels Dec 7, 2016
@dadgar
Copy link
Contributor

dadgar commented Dec 7, 2016

Believe we just need to re-vendor consul-template

@dadgar dadgar added this to the v0.5.1 milestone Dec 7, 2016
@tgross tgross modified the milestones: near-term, unscheduled Jan 9, 2020
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
theme/api HTTP API and SDK issues theme/template
Projects
None yet
Development

No branches or pull requests

3 participants