From b5665b72c102cd187a4cd6d0dd5442c98fef5a94 Mon Sep 17 00:00:00 2001 From: Jerry Flood Date: Wed, 22 Nov 2017 19:01:36 -0500 Subject: Update neutron client action_prefix /v2.0 Issue-ID: TEST-71 Change-Id: I62bab71ba90fdd267ca268715db4df7d7fc08b7a Signed-off-by: Jerry Flood --- heatbridge/heatbridge/OpenstackManager.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/heatbridge/heatbridge/OpenstackManager.py b/heatbridge/heatbridge/OpenstackManager.py index 07eddc7..0bb637a 100644 --- a/heatbridge/heatbridge/OpenstackManager.py +++ b/heatbridge/heatbridge/OpenstackManager.py @@ -136,7 +136,11 @@ class OpenstackManager: self.__check_authenticated() #: :type client: NeutronClient client = self.__neutron_client; - port_info = client.show_port(port_id); + try: + port_info = client.show_port(port_id); + except Exception as e: + client.action_prefix = "/v2.0"; + port_info = client.show_port(port_id); return port_info; def __check_authenticated(self): -- cgit 1.2.3-korg