Permalink
Browse files

Version the auth API separately from the normal APIs

git-svn-id: https://svn.apache.org/repos/asf/incubator/libcloud/trunk@1081247 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 26247f9 commit 9c8605e1518c6b5e2511f0780e1946089a7256dd @pquerna pquerna committed Mar 14, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 libcloud/common/rackspace.py
@@ -23,6 +23,7 @@
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 @@ def host(self):
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

0 comments on commit 9c8605e

Please sign in to comment.