You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/01/05 06:14:39 UTC
svn commit: r895901 - /incubator/libcloud/trunk/libcloud/drivers/vpsnet.py
Author: pquerna
Date: Tue Jan 5 05:14:38 2010
New Revision: 895901
URL: http://svn.apache.org/viewvc?rev=895901&view=rev
Log:
Add hard coded list_locations for VPS.net
Modified:
incubator/libcloud/trunk/libcloud/drivers/vpsnet.py
Modified: incubator/libcloud/trunk/libcloud/drivers/vpsnet.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/vpsnet.py?rev=895901&r1=895900&r2=895901&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/vpsnet.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/vpsnet.py Tue Jan 5 05:14:38 2010
@@ -17,7 +17,7 @@
"""
from libcloud.providers import Provider
from libcloud.types import NodeState
-from libcloud.base import Node, Response, ConnectionUserAndKey, NodeDriver, NodeSize, NodeImage
+from libcloud.base import Node, Response, ConnectionUserAndKey, NodeDriver, NodeSize, NodeImage, NodeLocation
import base64
@@ -167,3 +167,6 @@
images.extend([self._to_image(image, label) for image in templates])
return images
+
+ def list_locations(self):
+ return [NodeLocation(0, "VPS.net Western US", 'us', self)]