mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2024-11-27 22:38:22 +01:00
fix(macros)
This commit is contained in:
parent
70e66c97be
commit
a1b88a9845
@ -1,7 +1,7 @@
|
|||||||
{%- if config.command is string -%}
|
{%- if config.command is iterable and config.command is not string -%}
|
||||||
{{ for_user }} {{ config.privileges }}: {{ config.command }}
|
|
||||||
{%- else -%}
|
|
||||||
{% for command in config.command -%}
|
{% for command in config.command -%}
|
||||||
{{ for_user }} {{ config.privileges }}: {{ command }}
|
{{ for_user }} {{ config.privileges }}: {{ command }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{%- else -%}
|
||||||
|
{{ for_user }} {{ config.privileges }}: {{ config.command }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user