Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Multipass templating and conditionals #568

Open
kaufers opened this issue May 25, 2017 · 0 comments
Open

Multipass templating and conditionals #568

kaufers opened this issue May 25, 2017 · 0 comments

Comments

@kaufers
Copy link
Contributor

kaufers commented May 25, 2017

Doing an if check on a variable that is not defined always equates to true when multipass is enabled. For example:

{{ if (var "/some/var") }}

If multipass is enabled then this resolves to:

{{ if "{{ var `/some/var` }}" }}

Since the value in the conditional is a non-empty string then the if check always evaluates to true.

chungers pushed a commit to chungers/infrakit that referenced this issue Sep 30, 2017
chungers pushed a commit to chungers/infrakit that referenced this issue Oct 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant