From cd0d80210ec45df2a80bade93af1037fe9266a46 Mon Sep 17 00:00:00 2001 From: Abhishek Raut Date: Sun, 21 Feb 2016 14:49:10 -0800 Subject: [PATCH] LBaaS: make use of neutron_lib exceptions Commit 87a79256c494c36f2d9597313f430b24c0110161 added shared exceptions to neutron-lib. This patch makes use of the aforementioned library. Change-Id: Idbdeab79d0de6730a05401d23a808d6398605b48 --- neutron_lbaas/extensions/l7.py | 2 +- neutron_lbaas/extensions/sharedpools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron_lbaas/extensions/l7.py b/neutron_lbaas/extensions/l7.py index 68fa5a6d3..ea07be099 100644 --- a/neutron_lbaas/extensions/l7.py +++ b/neutron_lbaas/extensions/l7.py @@ -18,9 +18,9 @@ from neutron.api import extensions from neutron.api.v2 import attributes as attr from neutron.api.v2 import base from neutron.api.v2 import resource_helper -from neutron.common import exceptions as nexception from neutron import manager from neutron.plugins.common import constants +from neutron_lib import exceptions as nexception from neutron_lbaas._i18n import _ from neutron_lbaas.extensions import loadbalancerv2 diff --git a/neutron_lbaas/extensions/sharedpools.py b/neutron_lbaas/extensions/sharedpools.py index f1dabcc80..b04620feb 100644 --- a/neutron_lbaas/extensions/sharedpools.py +++ b/neutron_lbaas/extensions/sharedpools.py @@ -15,7 +15,7 @@ # under the License. from neutron.api import extensions -from neutron.common import exceptions as nexception +from neutron_lib import exceptions as nexception from neutron_lbaas._i18n import _