From 42030ee8aabc0fcceee4888171e1ae696ce04995 Mon Sep 17 00:00:00 2001 From: Steffen Zieger Date: Mon, 24 Feb 2014 23:36:41 +0100 Subject: [PATCH] add default case, if no hash is given --- templates/ssh_config.erb | 2 ++ templates/sshd_config.erb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/templates/ssh_config.erb b/templates/ssh_config.erb index 030d76107..142681914 100644 --- a/templates/ssh_config.erb +++ b/templates/ssh_config.erb @@ -6,5 +6,7 @@ <%- v.each do |key, value| -%> <%= key %> <%= value %> <%- end -%> +<%- else -%> +<%= k %> <%= v %> <%- end -%> <%- end -%> diff --git a/templates/sshd_config.erb b/templates/sshd_config.erb index 95581d2b5..d93ec4221 100644 --- a/templates/sshd_config.erb +++ b/templates/sshd_config.erb @@ -6,5 +6,7 @@ <%- v.each do |key, value| -%> <%= key %> <%= value %> <%- end -%> +<%- else -%> +<%= k %> <%= v %> <%- end -%> <%- end -%>