diff --git a/templates/supervisord.conf.j2 b/templates/supervisord.conf.j2 index bfe59d7..a53785d 100644 --- a/templates/supervisord.conf.j2 +++ b/templates/supervisord.conf.j2 @@ -9,8 +9,13 @@ [{{ section_label }}:{{ section.name }}] {% for option, value in section.items() %} {% if option != 'name' %} +{% if option == 'environment' and value is iterable and value is not string %} +{{ option }} ={% for k,v in value.iteritems() %}{{ k }}="{{v}}", {% endfor %} + +{% else %} {{ option }} = {{ value }} {% endif %} +{% endif %} {% endfor %} {% endfor %} {% endmacro %}