Use session from OSC plugin

The commit below this one [1] adds support for using a session. This one
makes use of that from the OSC plugin, since it already has a working
keystone-session thanks to the generic bits of the OSC CLI code.

[1] I4fccb4117db11c966ac3f17ec6d2a53c657378e8

Change-Id: Ibefb071f28ff7239bce082f0947985af6d8e2f27
This commit is contained in:
Juan Antonio Osorio Robles 2017-03-20 08:22:38 +02:00
parent 83b3d0d39c
commit 63f1fd5ab5
1 changed files with 1 additions and 6 deletions

View File

@ -42,12 +42,7 @@ def make_client(instance):
interface='publicURL'
)
client = workflow_client(
mistral_url=mistral_url,
auth_token=instance.auth_ref.auth_token,
project_id=instance.auth_ref.project_id,
user_id=instance.auth_ref.user_id,
)
client = workflow_client(mistral_url=mistral_url, session=instance.session)
return client