Fix stylistic problems with help text

The help text for the backdoor_port configuration option was a little
groddy.  This reformats it to clean it up a little.  Some punctuation
is also added to clarify the meaning of the text.

Change-Id: Ie61be9f0d08cd9c2485177b207216b3b775acd04
This commit is contained in:
Kevin L. Mitchell
2013-07-15 16:43:41 -05:00
parent ca0ca29e3f
commit 1dcc747401

View File

@@ -34,17 +34,17 @@ from oslo.config import cfg
from openstack.common.gettextutils import _ # noqa
from openstack.common import log as logging
help_for_backdoor_port = 'Acceptable ' + \
'values are 0, <port> and <start>:<end>, where 0 results in ' + \
'listening on a random tcp port number, <port> results in ' + \
'listening on the specified port number and not enabling backdoor' + \
'if it is in use and <start>:<end> results in listening on the ' + \
'smallest unused port number within the specified range of port ' + \
'numbers. The chosen port is displayed in the service\'s log file.'
help_for_backdoor_port = (
"Acceptable values are 0, <port>, and <start>:<end>, where 0 results "
"in listening on a random tcp port number; <port> results in listening "
"on the specified port number (and not enabling backdoor if that port "
"is in use); and <start>:<end> results in listening on the smallest "
"unused port number within the specified range of port numbers. The "
"chosen port is displayed in the service's log file.")
eventlet_backdoor_opts = [
cfg.StrOpt('backdoor_port',
default=None,
help='Enable eventlet backdoor. %s' % help_for_backdoor_port)
help="Enable eventlet backdoor. %s" % help_for_backdoor_port)
]
CONF = cfg.CONF