Skip to content

Commit 56e0d18

Browse files
committed
Adding optional opts section to template to restructure vars a little
1 parent a989565 commit 56e0d18

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/celery_env.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@
44
{{k}}='{{v}}'
55
{% endif %}
66
{% endfor %}
7+
{% if item.opts is defined %}
8+
{% for k, v in item.opts.items()|sort %}
9+
{% if '__omit_place_holder__' not in v|string %}
10+
{{k}}='{{v}}'
11+
{% endif %}
12+
{% endfor %}
13+
{% endif %}}

0 commit comments

Comments
 (0)