Remove usage of private '_url' property from OSC
Due to a recent change in OSC (https://review.openstack.org/#/c/329189/) some attributes that were previously private but available were removed. This patch just assumes that the url is not available and gets the endpoint regardless. It removes the necessecity for accessing the private property. Change-Id: I680f1a76aab1a94883bc58de241fd0d65d1cb78a Closes-Bug: #1605876
This commit is contained in:
@@ -35,14 +35,13 @@ def make_client(instance):
|
||||
|
||||
LOG.debug('Instantiating workflow engine client: %s', workflow_client)
|
||||
|
||||
if not instance._url:
|
||||
instance._url = instance.get_endpoint_for_service_type(
|
||||
mistral_url = instance.get_endpoint_for_service_type(
|
||||
'workflowv2',
|
||||
interface='publicURL'
|
||||
)
|
||||
|
||||
client = workflow_client(
|
||||
mistral_url=instance._url,
|
||||
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,
|
||||
|
Reference in New Issue
Block a user