From: Jeremy T. Bouse <[email protected]>
Signed-off-by: James Turnbull <[email protected]> --- lib/facter/ec2.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/facter/ec2.rb b/lib/facter/ec2.rb index ef84757..f52490e 100644 --- a/lib/facter/ec2.rb +++ b/lib/facter/ec2.rb @@ -6,7 +6,7 @@ require 'open-uri' require 'timeout' def can_connect?(ip,port,wait_sec=2) - Timeout::timeout(wait_sec) {open(ip, port)} + Timeout::timeout(wait_sec) {open(ip, port.to_i)} return true rescue return false -- 1.6.0.6 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
