From a57632d92ff59ae5771bcfe51786159e896a1613 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Wed, 20 Oct 2021 14:21:52 +0200 Subject: [PATCH] elb_instance - initial integration tests (#768) elb_instance - initial integration tests SUMMARY Rewrite elb_instance (ec2_elb) for boto3 ISSUE TYPE Feature Pull Request COMPONENT NAME elb_instance ADDITIONAL INFORMATION fixes: #384 Reviewed-by: Markus Bergholz Reviewed-by: Alina Buzachis Reviewed-by: None --- elb_instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: