fujin/chef-discovery — pull request #2 by danryan (2012-06-01 22:29:41+00:00)
Title: Add region checking to ipaddress for ec2

Two EC2 nodes in different regions cannot communicate over their private IPs. If the current node and a remote node are both in EC2 but not in the same region, Discovery will erroneously return a local IPv4. This adds a check to determine, if node.cloud.provider returns "ec2", whether the remote node is in the same region as the current node.