You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by je...@apache.org on 2011/09/19 22:40:29 UTC

svn commit: r1172808 - /libcloud/trunk/libcloud/compute/drivers/linode.py

Author: jed
Date: Mon Sep 19 20:40:29 2011
New Revision: 1172808

URL: http://svn.apache.org/viewvc?rev=1172808&view=rev
Log:
Add Japan to Linode driver

The Linode driver carelessly does some country guessing. Rather than fix that,
add the new country that launched today.


Modified:
    libcloud/trunk/libcloud/compute/drivers/linode.py

Modified: libcloud/trunk/libcloud/compute/drivers/linode.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/compute/drivers/linode.py?rev=1172808&r1=1172807&r2=1172808&view=diff
==============================================================================
--- libcloud/trunk/libcloud/compute/drivers/linode.py (original)
+++ libcloud/trunk/libcloud/compute/drivers/linode.py Mon Sep 19 20:40:29 2011
@@ -528,6 +528,7 @@ class LinodeNodeDriver(NodeDriver):
             country = None
             if "USA" in dc["LOCATION"]: country = "US"
             elif "UK" in dc["LOCATION"]: country = "GB"
+            elif "JP" in dc["LOCATION"]: country = "JP"
             else: country = "??"
             nl.append(NodeLocation(dc["DATACENTERID"],
                                    dc["LOCATION"],