From 7270f8d9de737e607d4086d173af8f18bf76bd00 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Mon, 15 Oct 2018 09:16:57 +0300 Subject: [PATCH] NSX|P: remove sys usage from plugin It causes problems at neutron init and is not really necessary Change-Id: I320e45cc39a3c5506bf466c44a94f89c303d8088 --- vmware_nsx/plugins/nsx_p/plugin.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vmware_nsx/plugins/nsx_p/plugin.py b/vmware_nsx/plugins/nsx_p/plugin.py index a98889d0d6..0eaec114a9 100644 --- a/vmware_nsx/plugins/nsx_p/plugin.py +++ b/vmware_nsx/plugins/nsx_p/plugin.py @@ -13,8 +13,6 @@ # License for the specific language governing permissions and limitations # under the License. -import sys - import netaddr from oslo_config import cfg @@ -777,8 +775,6 @@ class NsxPolicyPlugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin, self.nsxpolicy.group.get(NSX_P_GLOBAL_DOMAIN_ID, NSX_P_DEFAULT_GROUP) except nsx_lib_exc.ResourceNotFound: - # prevent logger from logging this exception - sys.exc_clear() LOG.info("Going to create default group & " "communication map under the default domain") else: