Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

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

Merged
jrasell merged 1 commit into
hashicorp:masterfrom
pmcatominey:missing-vars
Oct 6, 2017
Merged

templater: fail rendering if a variable is not set#12
jrasell merged 1 commit into
hashicorp:masterfrom
pmcatominey:missing-vars

Conversation

@pmcatominey

@pmcatominey pmcatominey commented Oct 5, 2017

Copy link
Copy Markdown
Contributor

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

jrasell commented Oct 6, 2017

Copy link
Copy Markdown
Member

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
Copy Markdown

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
Copy Markdown

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants