Skip to content

Commit

Permalink
Fix quotes in template
Browse files Browse the repository at this point in the history
Double quotes are needed, while quote filter adds single quotes
  • Loading branch information
spetrosi committed May 17, 2024
1 parent ff38c8a commit 67a5c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/sudoers.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Defaults {{ name }} = {{ paths | join(":") }}
{% for items in values | list | slice(6) %}
{% if items %}
{% if loop.first %}
Defaults {{ name }} = {{ items | list | join(' ') | quote }}
Defaults "{{ name }} = {{ items | list | join(' ') }}"
{% else %}
Defaults {{ name }} += {{ items | list | join(' ') | quote }}
Defaults "{{ name }} += {{ items | list | join(' ') }}"
{% endif -%}
{% endif -%}
{% endfor %}
Expand Down

0 comments on commit 67a5c10

Please sign in to comment.