1
0
Fork 0
mirror of synced 2024-11-24 01:35:36 -05:00
formula-sudoers/sudoers/templates/sudoers.jinja
Anthony Martinet a1b88a9845 fix(macros)
2019-04-24 17:23:04 +02:00

7 lines
263 B
Django/Jinja

{%- 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 -%}