Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Fail on unhandled exception rather than raise
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Siefkas committed Feb 8, 2016
1 parent 0cfa3d3 commit f0cc147
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cloud/amazon/ec2_asg.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,9 @@ def elb_healthy(asg_connection, elb_connection, module, group_name):
except boto.exception.BotoServerError, e:
if e.error_code == 'InvalidInstance':
return None
else:
raise

module.fail_json(msg=str(e))

for i in lb_instances:
if i.state == "InService":
healthy_instances.append(i.instance_id)
Expand Down

0 comments on commit f0cc147

Please sign in to comment.