NSX|P: remove sys usage from plugin
It causes problems at neutron init and is not really necessary Change-Id: I320e45cc39a3c5506bf466c44a94f89c303d8088
This commit is contained in:
parent
fdd8c2e47c
commit
7270f8d9de
@ -13,8 +13,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
import netaddr
|
import netaddr
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
@ -777,8 +775,6 @@ class NsxPolicyPlugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
|
|||||||
self.nsxpolicy.group.get(NSX_P_GLOBAL_DOMAIN_ID,
|
self.nsxpolicy.group.get(NSX_P_GLOBAL_DOMAIN_ID,
|
||||||
NSX_P_DEFAULT_GROUP)
|
NSX_P_DEFAULT_GROUP)
|
||||||
except nsx_lib_exc.ResourceNotFound:
|
except nsx_lib_exc.ResourceNotFound:
|
||||||
# prevent logger from logging this exception
|
|
||||||
sys.exc_clear()
|
|
||||||
LOG.info("Going to create default group & "
|
LOG.info("Going to create default group & "
|
||||||
"communication map under the default domain")
|
"communication map under the default domain")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user