libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [3/4] git commit: DATACENTER -> REGION.
Date Sun, 18 Aug 2013 21:24:09 GMT
DATACENTER -> REGION.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/99fd19a6
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/99fd19a6
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/99fd19a6

Branch: refs/heads/trunk
Commit: 99fd19a62809930d83d62c332b084e09c08c5f93
Parents: fd2b409
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Sun Aug 18 23:06:22 2013 +0200
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Sun Aug 18 23:06:22 2013 +0200

----------------------------------------------------------------------
 libcloud/compute/drivers/ec2.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/99fd19a6/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index cbeba3e..627e788 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -337,8 +337,8 @@ REGION_DETAILS = {
     }
 }
 
-VALID_EC2_DATACENTERS = REGION_DETAILS.keys()
-VALID_EC2_DATACENTERS = [d for d in VALID_EC2_DATACENTERS if d != 'nimbus']
+VALID_EC2_REGIONS = REGION_DETAILS.keys()
+VALID_EC2_REGIONS = [r for r in VALID_EC2_REGIONS if r != 'nimbus']
 
 
 class EC2NodeLocation(NodeLocation):
@@ -1487,7 +1487,7 @@ class EC2NodeDriver(BaseEC2NodeDriver):
         if hasattr(self, '_region'):
             region = self._region
 
-        if region not in VALID_EC2_DATACENTERS:
+        if region not in VALID_EC2_REGIONS:
             raise ValueError('Invalid region: %s' % (region))
 
         details = REGION_DETAILS[region]


Mime
View raw message