Get service catalog from token info

Closes-Bug: #1634090
Change-Id: I661bdbc4c70b17523d156eedc33aef32ddacf84f
This commit is contained in:
Fei Long Wang 2016-10-18 22:23:02 +13:00
parent 502e203ce3
commit b766e0dcda
1 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,9 @@ def context_from_headers_and_env(headers, env):
token_info = env.get('keystone.token_info')
if token_info and target_service_catalog is None:
target_service_catalog = token_info['token']
return MistralContext(
auth_uri=auth_uri,
auth_cacert=auth_cacert,