summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):