Replace exit() by sys.exit()
exit() is used for interactive shell, it relies on the site module. sys.exit() is considered good to use in programs. Trivial-fix Change-Id: Ic34e137a4f1d116a63f50a56ee6b3b2d5efa6d97
This commit is contained in:
parent
871efe51e5
commit
cccd78f8d1
|
@ -889,7 +889,7 @@ class LinuxBridgeNeutronAgentRPC(service.Service):
|
||||||
else:
|
else:
|
||||||
LOG.error(_LE("Unable to obtain MAC address for unique ID. "
|
LOG.error(_LE("Unable to obtain MAC address for unique ID. "
|
||||||
"Agent terminated!"))
|
"Agent terminated!"))
|
||||||
exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
self.plugin_rpc = agent_rpc.PluginApi(topics.PLUGIN)
|
self.plugin_rpc = agent_rpc.PluginApi(topics.PLUGIN)
|
||||||
self.sg_plugin_rpc = sg_rpc.SecurityGroupServerRpcApi(topics.PLUGIN)
|
self.sg_plugin_rpc = sg_rpc.SecurityGroupServerRpcApi(topics.PLUGIN)
|
||||||
|
|
|
@ -1016,7 +1016,7 @@ class OVSNeutronAgent(sg_rpc.SecurityGroupAgentRpcCallbackMixin,
|
||||||
"tunneling enabled on this agent, since this "
|
"tunneling enabled on this agent, since this "
|
||||||
"version of OVS does not support tunnels or patch "
|
"version of OVS does not support tunnels or patch "
|
||||||
"ports. Agent terminated!"))
|
"ports. Agent terminated!"))
|
||||||
exit(1)
|
sys.exit(1)
|
||||||
if self.conf.AGENT.drop_flows_on_start:
|
if self.conf.AGENT.drop_flows_on_start:
|
||||||
self.tun_br.delete_flows()
|
self.tun_br.delete_flows()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue