From ba72c1e8b72588732f825256922457ba3315c8dc Mon Sep 17 00:00:00 2001 From: Robert Fairburn Date: Fri, 19 Sep 2014 10:55:19 -0500 Subject: [PATCH] remove prefix when not needed --- openssh/files/sshd_config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openssh/files/sshd_config b/openssh/files/sshd_config index 91e534e..642cbb8 100644 --- a/openssh/files/sshd_config +++ b/openssh/files/sshd_config @@ -7,14 +7,14 @@ {%- macro render_option(keyword, default, config_dict=sshd_config) -%} {%- set value = config_dict.get(keyword, default) -%} {%- if value is sameas true -%} -{{ prefix }}{{ keyword }} yes +{{ keyword }} yes {%- elif value is sameas false -%} -{{ prefix }}{{ keyword }} no +{{ keyword }} no {%- elif value is string or value is number -%} -{{ prefix }}{{ keyword }} {{ value }} +{{ keyword }} {{ value }} {%- else -%} {%- for single_value in value -%} -{{ prefix }}{{ keyword }} {{ single_value }} +{{ keyword }} {{ single_value }} {% endfor -%} {%- endif -%} {%- endmacro -%}