[CRITICAL] Rendering SLS "base:env_qa" failed: Jinja syntax error:
Encountered unknown tag 'range'.; line 31
---
[...]
{% range ndx from 1 to 3 %} <======================
qa-mesh-{{ ndx }}:
cloud.present:
- name: qa-mesh-{{ ndx }}
- provider: qa
- image: ami-c30360aa
[...]
-- JCL
David Anderson
unread,
Feb 5, 2014, 9:58:15 PM2/5/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to salt-...@googlegroups.com
Try
{% for ndx in range(1,3) %}
...
{% endfor %}
--
Dave
David Anderson
unread,
Feb 5, 2014, 9:58:53 PM2/5/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to salt-...@googlegroups.com
Actually, should be range(1,4)
--
Dave
J C Lawrence
unread,
Feb 6, 2014, 12:50:24 AM2/6/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to salt-...@googlegroups.com
Yeah, and that's much like what I ended up doing, but surely a Jinja
template should support Jinja features like Range? Principle of least
surprise and all that.
-- JCL
J C Lawrence
unread,
Feb 6, 2014, 12:52:26 AM2/6/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
"Welcome in the old Jinja Documentation. This documentation explains all
important parts of the Jinja pre 1.0 Template Engine.
For an up-to-date documentation check out the new Jinja webpage at
jinja.pocoo.org."