Merge pull request #9834 from nathancahill/fix-variables-with-dashes
Support variable values with dashes
This commit is contained in:
commit
13bbf9bfbb
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ def check_conditional(conditional, basedir, inject, fail_on_undefined=False):
|
|||
|
||||
conditional = conditional.replace("jinja2_compare ","")
|
||||
# allow variable names
|
||||
if conditional in inject and '-' not in str(inject[conditional]):
|
||||
if conditional in inject:
|
||||
conditional = inject[conditional]
|
||||
conditional = template.template(basedir, conditional, inject, fail_on_undefined=fail_on_undefined)
|
||||
original = str(conditional).replace("jinja2_compare ","")
|
||||
|
|
Loading…
Reference in a new issue