From 1b69ecab2ceb5140f40e93b80f19c04d2a0951da Mon Sep 17 00:00:00 2001 From: Simon Pirschel Date: Wed, 2 Nov 2016 15:21:50 +0100 Subject: [PATCH] fix issue with stripping new line will result in invalid SLS definition if AuthorizedKeysFile is missing in sshd_config --- openssh/auth.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openssh/auth.sls b/openssh/auth.sls index 184455f..e5a1e98 100644 --- a/openssh/auth.sls +++ b/openssh/auth.sls @@ -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 -%} \ No newline at end of file +{%- endfor -%}