Ruby syntax fixups
authorTollef Fog Heen <tfheen@err.no>
Sat, 13 Apr 2019 20:13:24 +0000 (22:13 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sat, 13 Apr 2019 20:13:24 +0000 (22:13 +0200)
modules/ssh/templates/sshd_config.erb

index 91df6fa..f0d5ab1 100644 (file)
@@ -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"