]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Remove password auth from pyrax
authorAndrew Plunk <andrew.plunk@rackspace.com>
Thu, 25 Jul 2013 19:04:06 +0000 (14:04 -0500)
committerAndrew Plunk <andrew.plunk@rackspace.com>
Wed, 31 Jul 2013 15:04:11 +0000 (10:04 -0500)
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

index 0b98a2289085f2f1a6bac403a9cd66227c78fdb2..bc2e66d47399c72e0a9536531a0e26bfb59c1573 100644 (file)
@@ -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