--- bar/facter-1.5.8/lib/facter/ec2.rb 2010-08-27 23:57:21.000000000 +0000 +++ foo/facter-1.5.8/lib/facter/ec2.rb 2011-04-22 03:19:29.000000000 +0000 @@ -6,7 +6,7 @@ require 'timeout' def can_connect?(ip,port,wait_sec=2) - Timeout::timeout(wait_sec) {open(ip, port)} + Timeout::timeout(wait_sec) {open("http://#{ip}:#{port}")} return true rescue return false