deploykit icon indicating copy to clipboard operation
deploykit copied to clipboard

Multipass templating and conditionals

Open kaufers opened this issue 9 years ago • 0 comments

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.

kaufers avatar May 25 '17 17:05 kaufers