]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Manually cast more
authorPeter Palfrader <peter@palfrader.org>
Sun, 21 Feb 2010 14:19:14 +0000 (15:19 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sun, 21 Feb 2010 14:19:14 +0000 (15:19 +0100)
modules/portforwarder/templates/xinetd.erb

index 179e753753dcd21f8f3461e3dbcfdc19bba8cbf7..68b1783894cf856461f0e6815586b1312e7708e1 100644 (file)
@@ -26,14 +26,14 @@ if config[fqdn]
                target_host = service['target_host']
                local_bind = service['source_bind_port']
 
-               lines << "# to #{target_port}:target_host from local port #{local_bind}"
+               lines << "# to #{target_port.to_s}:target_host from local port #{local_bind.to_s}"
                if target_port.nil? or target_host.nil? or local_bind.nil?
                        lines << "# insufficient config values"
                else
                        p = template.clone
                        p.gsub!('@@TARGET_HOST@@', target_host)
                        p.gsub!('@@TARGET_PORT@@', target_port.to_s)
-                       p.gsub!('@@LOCLA_BIND@@', local_bind)
+                       p.gsub!('@@LOCAL_BIND@@', local_bind.to_s)
                        lines << p
                end
        end