Browse Source

NSX|P: remove sys usage from plugin

It causes problems at neutron init and is not really necessary

Change-Id: I320e45cc39a3c5506bf466c44a94f89c303d8088
changes/35/610435/2
Adit Sarfaty 3 years ago
parent
commit
7270f8d9de
  1. 4
      vmware_nsx/plugins/nsx_p/plugin.py

4
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:

Loading…
Cancel
Save