From ae0f80c6e8ac0a8349cc83a2771dabbfc72e3f37 Mon Sep 17 00:00:00 2001 From: tepwil Date: Thu, 4 Sep 2014 09:53:41 -0500 Subject: [PATCH] Fixing bug in cross-zone load balancing enablement Fixes #8861 --- library/cloud/ec2_elb_lb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cloud/ec2_elb_lb b/library/cloud/ec2_elb_lb index d2bbd5c9beb..f15de268924 100644 --- a/library/cloud/ec2_elb_lb +++ b/library/cloud/ec2_elb_lb @@ -591,7 +591,7 @@ class ElbManager(object): def _set_cross_az_load_balancing(self): attributes = self.elb.get_attributes() - if self.cross_az_load_balancing == 'yes': + if self.cross_az_load_balancing: attributes.cross_zone_load_balancing.enabled = True else: attributes.cross_zone_load_balancing.enabled = False