Comment 6 for bug 1551817

Revision history for this message
Robert Hedges (hedges) wrote :

I had the same issue as @PhillipA above and was able to get the VM to provision. But the orchstrate step fails with:

[ERROR ] Rendering exception occurred: Jinja syntax error: Encountered unknown tag '_dummy'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.; line 15

---
[...]

{%- if salt['file.file_exists']('salt://'+formula_name+'/meta/salt.yml') %}
{%- set grains_fragment_file = formula_name+'/meta/salt.yml' %}
{%- macro load_grains_file() %}{% include grains_fragment_file %}{% endmacro %}
{%- set grains_yaml = load_grains_file()|load_yaml %}
{% _dummy = formula_dict.update{formula_name: grains_yaml.orchestrate }} <======================
{%- else %}
{%- endif %}
{%- endfor %}

/srv/salt/env/{{ environment_name}}/orchestrate.sls: