diff options
| author | Swapnil Kulkarni <swapnilkulkarni2608@gmail.com> | 2014-01-25 08:13:25 +0530 |
|---|---|---|
| committer | Swapnil Kulkarni <swapnilkulkarni2608@gmail.com> | 2014-01-25 08:22:13 +0530 |
| commit | fbee97cf196fa4517c753f2daadb3606d3b5dca3 (patch) | |
| tree | f72e6685da5b3488245017c764fcf1f39a58b0d1 /cinderclient | |
| parent | e2642796b852c5afc52c56be9af76d251e6eb099 (diff) | |
| download | python-cinderclient-fbee97cf196fa4517c753f2daadb3606d3b5dca3.tar.gz | |
Remove RAX-specific auth in cinderclient
Change-Id: Idd36694a322f467ba5e8c1f58bfac701bff8f3f8
Closes-Bug: #966329
Diffstat (limited to 'cinderclient')
| -rw-r--r-- | cinderclient/client.py | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/cinderclient/client.py b/cinderclient/client.py index a9f11f1..c268137 100644 --- a/cinderclient/client.py +++ b/cinderclient/client.py @@ -22,7 +22,6 @@ OpenStack Client interface. Handles the REST calls and responses. from __future__ import print_function import logging -import os try: import urlparse @@ -296,10 +295,7 @@ class HTTPClient(object): auth_url = self.auth_url if self.version == "v2.0": while auth_url: - if "CINDER_RAX_AUTH" in os.environ: - auth_url = self._rax_auth(auth_url) - else: - auth_url = self._v2_auth(auth_url) + auth_url = self._v2_auth(auth_url) # Are we acting on behalf of another user via an # existing token? If so, our actual endpoints may @@ -358,16 +354,6 @@ class HTTPClient(object): self._authenticate(url, body) - def _rax_auth(self, url): - """Authenticate against the Rackspace auth service.""" - body = {"auth": { - "RAX-KSKEY:apiKeyCredentials": { - "username": self.user, - "apiKey": self.password, - "tenantName": self.projectid}}} - - self._authenticate(url, body) - def _authenticate(self, url, body): """Authenticate and extract the service catalog.""" token_url = url + "/tokens" |
