From de8f0c504fd49eef93c7b3c356fefefec23ea7f8 Mon Sep 17 00:00:00 2001 From: "Brad P. Crochet" Date: Tue, 26 Jul 2016 08:36:59 -0400 Subject: [PATCH] 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 --- mistralclient/osc/plugin.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mistralclient/osc/plugin.py b/mistralclient/osc/plugin.py index a7a26279..1952d6df 100644 --- a/mistralclient/osc/plugin.py +++ b/mistralclient/osc/plugin.py @@ -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( - 'workflowv2', - interface='publicURL' - ) + 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,