Browse Source

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

tags/v0.41.0
Simon Pirschel 8 years ago
parent
commit
1b69ecab2c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      openssh/auth.sls

+ 2
- 2
openssh/auth.sls 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 -%}

Loading…
Cancel
Save