Skip to content

Commit f1b7c57

Browse files
martinpittrichm
andauthored
Apply suggestions from code review
Co-authored-by: Richard Megginson <[email protected]>
1 parent cd7a223 commit f1b7c57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/sudoers.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@
55
{% for alias_item in item.aliases[alias_dict] %}
66
{{ alias_str }} {{ alias_item.name }} = {{ alias_item[alias_subdict_name] | join(", ") }}
77
{% endfor %}
8+
{% else %}
9+
{{- '' -}}
810
{% endif %}
911
{%- endmacro -%}
1012
{%- macro render_override_spec(spec,spec_type, spec_dict, sign) %}
1113
{% if spec.type == spec_type %}
1214
Defaults{{ sign }} {{ spec[spec_dict] | join(", ") }} {{ spec.defaults | join(", ") }}
15+
{% else %}
16+
{{- '' -}}
1317
{% endif %}
1418
{%- endmacro -%}
1519
{{ ansible_managed | default('Ansible managed') | comment }}

0 commit comments

Comments
 (0)