Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

ec2.elb.get_all_load_balancers() and load_balancer_names #509

Open
gtaylor opened this Issue Jan 21, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Contributor

gtaylor commented Jan 21, 2012

ec2.elb.get_all_load_balancers() currently returns an unhandled BotoServerError with the XML dump, instead of an ELB exception, if you pass an name that doesn't exist to load_balancer_names:

>>> conn.get_all_load_balancers(load_balancer_names=['webapp-balancer2'])                                                     
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/gtaylor/workspace/coursebook/bundled/boto/ec2/elb/__init__.py", line 126, in get_all_load_balancers
    return self.get_list('DescribeLoadBalancers', params,
  File "/home/gtaylor/workspace/coursebook/bundled/boto/connection.py", line 876, in get_list
    raise self.ResponseError(response.status, response.reason, body)
BotoServerError: BotoServerError: 400 Bad Request
<ErrorResponse xmlns="http://elasticloadbalancing.amazonaws.com/doc/2011-11-15/">
  <Error>
    <Type>Sender</Type>
    <Code>LoadBalancerNotFound</Code>
    <Message>Cannot find Load Balancer webapp-balancer2</Message>
  </Error>
  <RequestId>093f80d0-4473-11e1-9234-edce8ec08e2d</RequestId>
</ErrorResponse>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment