fix issue with stripping new line will result in invalid SLS definition if AuthorizedKeysFile is missing in sshd_config

This commit is contained in:
Simon Pirschel 2016-11-02 15:21:50 +01:00
parent 2a1b8fbc66
commit 1b69ecab2c

View File

@ -40,7 +40,7 @@ include:
{{ print_ssh_auth(identifier, key) }}
{%- if 'sshd_config' in pillar and 'AuthorizedKeysFile' in pillar['sshd_config'] %}
- config: '{{ pillar['sshd_config']['AuthorizedKeysFile'] }}'
{% endif -%}
{% endif %}
- require:
- service: {{ openssh.service }}
{%- else %}
@ -52,4 +52,4 @@ include:
{% endif -%}
{%- endif -%}
{%- endfor -%}
{%- endfor -%}
{%- endfor -%}