Skip to content

Commit

Permalink
Make logic explicit in template.
Browse files Browse the repository at this point in the history
I see this warning when I render this template:
modules/ssh/templates/sshd_config.erb:3: warning: string literal in condition
Im not sure if this effects all versions of ruby or what. I think that this was your intension. Let me know if this isn't want you wanted here.

On:
ubuntu
ruby 1.9.3p0
puppet 3.4.3
  • Loading branch information
cruisibesarescondev committed Mar 12, 2014
1 parent 1db972b commit 6338f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/sshd_config.erb
Original file line number Diff line number Diff line change
@@ -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| -%>
Expand Down

0 comments on commit 6338f97

Please sign in to comment.