Yup, agreed and mentioned the same to Bruce in the other ticket, he'll make
the changes.

We also need to keep endpoint connection open outside of regions for
Eucalyptus cloud support.
On 2 Aug 2013 22:06, "ianoc" <notifications@github.com> wrote:

> In library/cloud/ec2_elb:
>
> > @@ -181,9 +220,28 @@ def main():
> >      if not ec2_access_key and 'EC2_ACCESS_KEY' in os.environ:
> >          ec2_access_key = os.environ['EC2_ACCESS_KEY']
> >
> > +    if not ec2_region and 'EC2_REGION' in os.environ:
> > +        ec2_region = os.environ['EC2_REGION']
> > +
> > +    if not ec2_region:
> > +        response = urllib2.urlopen('http://169.254.169.254/latest/meta-data/placement/availability-zone')
>
> The docs all previously referred to this being a local action, so calls to
> AWS that can only be made from an instance don't make sense in that
> context? How will this behave if the controlling node isn't on ec2? will
> this throw an exception?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ansible/ansible/pull/3728/files#r5562980>
> .
>