libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r1081247 - /incubator/libcloud/trunk/libcloud/common/rackspace.py
Date Mon, 14 Mar 2011 02:34:57 GMT
Author: pquerna
Date: Mon Mar 14 02:34:57 2011
New Revision: 1081247

URL: http://svn.apache.org/viewvc?rev=1081247&view=rev
Log:
Version the auth API separately from the normal APIs

Modified:
    incubator/libcloud/trunk/libcloud/common/rackspace.py

Modified: incubator/libcloud/trunk/libcloud/common/rackspace.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/common/rackspace.py?rev=1081247&r1=1081246&r2=1081247&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/common/rackspace.py (original)
+++ incubator/libcloud/trunk/libcloud/common/rackspace.py Mon Mar 14 02:34:57 2011
@@ -23,6 +23,7 @@ from libcloud.compute.types import Inval
 
 AUTH_HOST_US='auth.api.rackspacecloud.com'
 AUTH_HOST_UK='lon.auth.api.rackspacecloud.com'
+AUTH_API_VERSION = 'v1.0'
 
 class RackspaceBaseConnection(ConnectionUserAndKey):
     def __init__(self, user_id, key, secure):
@@ -50,7 +51,7 @@ class RackspaceBaseConnection(Connection
             conn = self.conn_classes[self.secure](self.auth_host, self.port[self.secure])
             conn.request(
                 method='GET',
-                url='/%s' % (self.api_version),
+                url='/%s' % (AUTH_API_VERSION),
                 headers={
                     'X-Auth-User': self.user_id,
                     'X-Auth-Key': self.key



Mime
View raw message