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

templater: fail rendering if a variable is not set #12

Merged
merged 1 commit into from
Oct 6, 2017

Conversation

pmcatominey
Copy link
Contributor

@pmcatominey pmcatominey commented Oct 5, 2017

previously the default behaviour of text/template was used which
would print the string "<no value>", this could lead to a situation
where an job file appears valid but would fail to run

Fixes #11

previously the default behaviour of text/template was used which
would print the string "<no value>", this could lead to a situation
where an job file appears valid but would fail to run
@jrasell jrasell added the bug label Oct 5, 2017
@jrasell
Copy link
Member

jrasell commented Oct 6, 2017

Thanks for this @pmcatominey; I will try to find some day to take a proper look and merge/give feedback.

@jrasell jrasell merged commit d156de5 into hashicorp:master Oct 6, 2017
@Himura2la
Copy link

Is it working?
I use Levant v0.3.0, and it does not fail on unset variables, while rendering them to <no value>

@baodrate
Copy link

Not sure when this regressed (I assume purposefully), but #308 seems to cover it

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

Successfully merging this pull request may close these issues.

4 participants