From 2dba51717a096313ae7b4be770a4301d7770fad0 Mon Sep 17 00:00:00 2001 From: Andrew Plunk Date: Thu, 25 Jul 2013 14:04:06 -0500 Subject: [PATCH] Remove password auth from pyrax Remove password auth from pyrax to conform with the changes going through the engine regarding not using a password. blueprint pyrax-token-auth Change-Id: I4ecc43d138f7cd71d41a7a3cd8ee29a821065383 --- heat/engine/resources/rackspace/rackspace_resource.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/heat/engine/resources/rackspace/rackspace_resource.py b/heat/engine/resources/rackspace/rackspace_resource.py index 0b98a228..bc2e66d4 100644 --- a/heat/engine/resources/rackspace/rackspace_resource.py +++ b/heat/engine/resources/rackspace/rackspace_resource.py @@ -100,8 +100,9 @@ class RackspaceResource(resource.Resource): pyrax.set_setting("tenant_id", self.context.tenant) logger.info("Authenticating with username:%s" % self.context.username) - pyrax.set_credentials(self.context.username, - password=self.context.password) + pyrax.auth_with_token(self.context.token, + tenant_id=self.context.tenant_id, + tenant_name=self.context.tenant) logger.info("User %s authenticated successfully." % self.context.username) self._authenticated = True -- 2.45.2