diff --git a/templates/sshd_config.erb b/templates/sshd_config.erb index eab824840..5043e66d2 100644 --- a/templates/sshd_config.erb +++ b/templates/sshd_config.erb @@ -1,6 +1,6 @@ # File is managed by Puppet -<%- scope.lookupvar('ssh::server::merged_options').sort_by{ |sk, sv| sk.to_s.downcase.include? "match" ? sk.to_s : '' }.each do |k, v| -%> +<%- scope.lookupvar('ssh::server::merged_options').sort_by{ |sk, sv| (sk.to_s.downcase.include? "match" )? sk.to_s : '' }.each do |k, v| -%> <%- if v.is_a?(Hash) -%> <%= k %> <%- v.sort.each do |key, value| -%>