]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Pass in endpoint url for quantum auth_token auth
authorSteve Baker <sbaker@redhat.com>
Tue, 2 Apr 2013 02:57:19 +0000 (15:57 +1300)
committerSteve Baker <sbaker@redhat.com>
Tue, 2 Apr 2013 03:05:52 +0000 (16:05 +1300)
This aligns quantum auth_token only authentication with the
way Horizon does it.

Tested by launching a stack with and without the --token-only flag

Also tested using Horizon, which is auth_token only

Part of blueprint auth-token-only

Change-Id: Ic6d471de527951415ef4858cbbff27cf60561924

heat/engine/clients.py

index dd9560c208d81840a7c2d99e2bc84a9a86322d08..b5781f813ceb05e31771c185e0ed616f615c80db 100644 (file)
@@ -160,10 +160,8 @@ class OpenStackClients(object):
             args['password'] = con.password
             args['tenant_name'] = con.tenant
         elif con.auth_token is not None:
-            args['username'] = con.service_user
-            args['password'] = con.service_password
-            args['tenant_name'] = con.service_tenant
             args['token'] = con.auth_token
+            args['endpoint_url'] = self.url_for(service_type='network')
         else:
             logger.error("Quantum connection failed, "
                          "no password or auth_token!")