Skip to content

Commit 0074418

Browse files
Altered API parameters such that authentication works again with the latest version of Rackspace Cloud Servers.
I have no idea why this would be necessary, just reverse engineered the calls from novaclient and they looked like this.
1 parent 28df9f5 commit 0074418

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dnsclient/client.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,11 @@ def _plugin_auth(self, auth_url):
433433
def _v2_auth(self, url):
434434
"""Authenticate against a v2.0 auth service."""
435435
body = {"auth": {
436-
"passwordCredentials": {"username": self.user,
437-
"password": self.password}}}
436+
"RAX-KSKEY:apiKeyCredentials": {"username": self.user,
437+
"apiKey": self.password}}}
438438

439439
if self.projectid:
440-
body['auth']['tenantName'] = self.projectid
440+
body['auth']['RAX-KSKEY:apiKeyCredentials']['tenantName'] = self.projectid
441441

442442
self._authenticate(url, body)
443443

0 commit comments

Comments
 (0)