Remove translation of help messages from tests
There is no need to translate help message for config option which is added and used only in tests. Change-Id: I8b8bdd4131e6183245bcd2556b2107d769fd6427
This commit is contained in:
parent
9e1ad814cb
commit
69b8588a19
|
@ -18,7 +18,6 @@ import types
|
|||
import mock
|
||||
from oslo_config import cfg
|
||||
|
||||
from neutron._i18n import _
|
||||
from neutron.agent.l3 import agent
|
||||
from neutron.agent.l3 import namespaces
|
||||
from neutron.agent import l3_agent
|
||||
|
@ -98,7 +97,7 @@ def get_external_device_name(ri, port_id):
|
|||
|
||||
OPTS = [
|
||||
cfg.StrOpt('test_namespace_suffix', default='testprefix',
|
||||
help=_("Suffix to append to all namespace names.")),
|
||||
help="Suffix to append to all namespace names."),
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ from neutron.cmd.eventlet.agents import dhcp as dhcp_agent
|
|||
|
||||
OPTS = [
|
||||
cfg.StrOpt('test_namespace_suffix', default='testprefix',
|
||||
help=_("Suffix to append to all DHCP namespace names.")),
|
||||
help="Suffix to append to all DHCP namespace names."),
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ import time
|
|||
|
||||
from oslo_config import cfg
|
||||
|
||||
from neutron._i18n import _
|
||||
from neutron.agent.linux import daemon
|
||||
|
||||
|
||||
|
@ -35,12 +34,12 @@ def main():
|
|||
|
||||
opts = [
|
||||
cfg.StrOpt('uuid',
|
||||
help=_('uuid provided from the command line '
|
||||
'so external_process can track us via /proc/'
|
||||
'cmdline interface.'),
|
||||
help='uuid provided from the command line '
|
||||
'so external_process can track us via /proc/'
|
||||
'cmdline interface.',
|
||||
required=True),
|
||||
cfg.StrOpt('pid_file',
|
||||
help=_('Location of pid file of this process.'),
|
||||
help='Location of pid file of this process.',
|
||||
required=True)
|
||||
]
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ import time
|
|||
from neutron_lib import constants as n_const
|
||||
from oslo_config import cfg
|
||||
|
||||
from neutron._i18n import _
|
||||
from neutron.agent.linux import daemon
|
||||
|
||||
UNIX_FAMILY = 'UNIX'
|
||||
|
@ -31,13 +30,13 @@ OPTS = [
|
|||
cfg.IntOpt('num_children',
|
||||
short='n',
|
||||
default=0,
|
||||
help=_('Number of children to spawn'),
|
||||
help='Number of children to spawn',
|
||||
required=False),
|
||||
cfg.StrOpt('family',
|
||||
short='f',
|
||||
default=n_const.IPv4,
|
||||
choices=[n_const.IPv4, n_const.IPv6, UNIX_FAMILY],
|
||||
help=_('Listen socket family (%(v4)s, %(v6)s or %(unix)s)') %
|
||||
help='Listen socket family (%(v4)s, %(v6)s or %(unix)s)' %
|
||||
{
|
||||
'v4': n_const.IPv4,
|
||||
'v6': n_const.IPv6,
|
||||
|
@ -48,7 +47,7 @@ OPTS = [
|
|||
short='p',
|
||||
default=n_const.PROTO_NAME_TCP,
|
||||
choices=[n_const.PROTO_NAME_TCP, n_const.PROTO_NAME_UDP],
|
||||
help=_('Protocol (%(tcp)s or %(udp)s)') %
|
||||
help='Protocol (%(tcp)s or %(udp)s)' %
|
||||
{
|
||||
'tcp': n_const.PROTO_NAME_TCP,
|
||||
'udp': n_const.PROTO_NAME_UDP
|
||||
|
@ -57,12 +56,12 @@ OPTS = [
|
|||
cfg.BoolOpt('parent_listen',
|
||||
short='pl',
|
||||
default=True,
|
||||
help=_('Parent process must listen too'),
|
||||
help='Parent process must listen too',
|
||||
required=False),
|
||||
cfg.BoolOpt('ignore_sigterm',
|
||||
short='i',
|
||||
default=False,
|
||||
help=_('Ignore SIGTERM'),
|
||||
help='Ignore SIGTERM',
|
||||
required=False)
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue