summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerry Flood <jf9860@att.com>2017-11-22 19:01:36 -0500
committerJerry Flood <jf9860@att.com>2017-11-22 19:14:02 -0500
commitb5665b72c102cd187a4cd6d0dd5442c98fef5a94 (patch)
tree7eb5e25705af84f33a422437d1ef7b2200da0a09
parentb4b24d60c5c91855d1ae18935d10432e697ae77a (diff)
Update neutron client action_prefix /v2.01.0.0-ONAP1.0.0-Amsterdam
Issue-ID: TEST-71 Change-Id: I62bab71ba90fdd267ca268715db4df7d7fc08b7a Signed-off-by: Jerry Flood <jf9860@att.com>
-rw-r--r--heatbridge/heatbridge/OpenstackManager.py6
1 files changed, 5 insertions, 1 deletions
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):