diff --git a/elb_instance.py b/elb_instance.py index 5759b0b2ccc..b234031ee24 100644 --- a/elb_instance.py +++ b/elb_instance.py @@ -271,7 +271,7 @@ def _get_instance_lbs(self, ec2_elbs=None): break if ec2_elbs: - lbs = sorted(lb for lb in elbs if lb.name in ec2_elbs) + lbs = sorted([lb for lb in elbs if lb.name in ec2_elbs], key=lambda lb: lb.__repr__()) else: lbs = [] for lb in elbs: