consul-formula icon indicating copy to clipboard operation
consul-formula copied to clipboard

SLS render fails without `template_engine`

Open zwiebelspaetzle opened this issue 5 years ago • 0 comments

I've got the following error when running consul-template with a pillar similar to the example:

    Data failed to compile:
----------
    Rendering SLS 'base:consul-template.config' failed: Jinja variable 'dict object' has no attribute 'template_engine'

Adding template_engine: null to the tmpl section results in errors about the resulting None value.

template_engine: jinja causes jinja syntax errors when trying to read the go template used by consul-template.

I was able to bypass the issue by removing line 15 in consul-template/config.sls: - template: {{ tmpl.template_engine }}

zwiebelspaetzle avatar Sep 11 '19 19:09 zwiebelspaetzle