libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1438329 - /libcloud/trunk/libcloud/loadbalancer/drivers/elb.py
Date Fri, 25 Jan 2013 05:35:38 GMT
Author: tomaz
Date: Fri Jan 25 05:35:38 2013
New Revision: 1438329

URL: http://svn.apache.org/viewvc?rev=1438329&view=rev
Log:
Fix Python 2.5 compatibility issue.

Modified:
    libcloud/trunk/libcloud/loadbalancer/drivers/elb.py

Modified: libcloud/trunk/libcloud/loadbalancer/drivers/elb.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/loadbalancer/drivers/elb.py?rev=1438329&r1=1438328&r2=1438329&view=diff
==============================================================================
--- libcloud/trunk/libcloud/loadbalancer/drivers/elb.py (original)
+++ libcloud/trunk/libcloud/loadbalancer/drivers/elb.py Fri Jan 25 05:35:38 2013
@@ -75,9 +75,9 @@ class ElasticLBDriver(Driver):
             'Listeners.member.1.Protocol': protocol.upper(),
         }
 
-        for i, z in enumerate(ex_members_availability_zones, 1):
+        for i, z in enumerate(ex_members_availability_zones):
             zone = '-'.join((self.region, z))
-            params['AvailabilityZones.member.%d' % i] = zone
+            params['AvailabilityZones.member.%d' % (i + 1)] = zone
 
         data = self.connection.request(ROOT, params=params).object
 



Mime
View raw message