[Bug 732953] [NEW] can_connect function inside ec2.rb always return false

2011-03-10 Thread Juan L. Negron
Public bug reported:

Binary package hint: facter

the can_connect function in ec2.rb always return false.
I modified the code as follows and it seems to have fixed the issue:
Before (Line 9 in ec2.rb):  Timeout::timeout(wait_sec) {open(ip, port)}
After: Timeout::timeout(wait_sec) 
{open(http://#{ip}:#{port}/latest/meta-data;)}

After that change, the module seems to work properly in EC2 instances.

** Affects: facter (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to facter in ubuntu.
https://bugs.launchpad.net/bugs/732953

Title:
  can_connect function inside ec2.rb always return false

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 732953] [NEW] can_connect function inside ec2.rb always return false

2011-03-10 Thread Juan L. Negron
Public bug reported:

Binary package hint: facter

the can_connect function in ec2.rb always return false.
I modified the code as follows and it seems to have fixed the issue:
Before (Line 9 in ec2.rb):  Timeout::timeout(wait_sec) {open(ip, port)}
After: Timeout::timeout(wait_sec) 
{open(http://#{ip}:#{port}/latest/meta-data;)}

After that change, the module seems to work properly in EC2 instances.

** Affects: facter (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/732953

Title:
  can_connect function inside ec2.rb always return false

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs