1
0
Fork 0
mirror of synced 2024-07-26 18:11:10 -04:00

fix(macros)

This commit is contained in:
Anthony Martinet 2019-04-24 17:23:04 +02:00
parent 70e66c97be
commit a1b88a9845

View file

@ -1,7 +1,7 @@
{%- if config.command is string -%}
{{ for_user }} {{ config.privileges }}: {{ config.command }}
{%- else -%}
{%- if config.command is iterable and config.command is not string -%}
{% for command in config.command -%}
{{ for_user }} {{ config.privileges }}: {{ command }}
{% endfor %}
{%- else -%}
{{ for_user }} {{ config.privileges }}: {{ config.command }}
{%- endif -%}