From: Tollef Fog Heen Date: Sat, 13 Apr 2019 20:13:24 +0000 (+0200) Subject: Ruby syntax fixups X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=8a30a571e7c3d8f7dfbfb16ca61565898088bb6e;p=mirror%2Fdsa-puppet.git Ruby syntax fixups --- diff --git a/modules/ssh/templates/sshd_config.erb b/modules/ssh/templates/sshd_config.erb index 91df6fa6e..f0d5ab19e 100644 --- a/modules/ssh/templates/sshd_config.erb +++ b/modules/ssh/templates/sshd_config.erb @@ -55,7 +55,7 @@ PasswordAuthentication no allnodeinfo.keys.sort.each do |node| next unless allnodeinfo[node].has_key?('ipHostNumber') allnodeinfo[node]['ipHostNumber'].each do |ipnum| - if ipnum =~ ":" + if ipnum =~ /:/ dbs << "#{ipnum}/128" else dbs << "#{ipnum}/32"