Trivial:Standardize the output format of 'help' in some files
In some files,it is possible that we import '_'from heat.commom.i18n. For more information: [1]http://docs.openstack.org/developer/oslo.i18n/usage.html Change-Id: I545b9e51111a9c9c542e3089bef1490a3ba3a40b
This commit is contained in:
parent
46a5c78955
commit
f34a7bb0d8
|
@ -20,6 +20,7 @@ from keystoneclient.v3 import client
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
|
||||||
|
from heat.common.i18n import _
|
||||||
from heat import version
|
from heat import version
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
@ -33,25 +34,25 @@ TENANT_NAME = os.environ.get('OS_TENANT_NAME')
|
||||||
opts = [
|
opts = [
|
||||||
cfg.StrOpt('stack-user-domain-name',
|
cfg.StrOpt('stack-user-domain-name',
|
||||||
default="heat",
|
default="heat",
|
||||||
help="Name of domain to create for stack users."),
|
help=_("Name of domain to create for stack users.")),
|
||||||
cfg.StrOpt('stack-domain-admin',
|
cfg.StrOpt('stack-domain-admin',
|
||||||
default="heat_stack_admin",
|
default="heat_stack_admin",
|
||||||
help="Keystone username with roles sufficient to manage users"
|
help=_("Keystone username with roles sufficient to manage users"
|
||||||
" and projects in the stack-user-domain"),
|
" and projects in the stack-user-domain")),
|
||||||
cfg.StrOpt('stack-domain-admin-password',
|
cfg.StrOpt('stack-domain-admin-password',
|
||||||
secret=True,
|
secret=True,
|
||||||
help="Password to set for stack-domain-admin"),
|
help=_("Password to set for stack-domain-admin")),
|
||||||
cfg.BoolOpt('insecure',
|
cfg.BoolOpt('insecure',
|
||||||
default=False,
|
default=False,
|
||||||
help="If set, then the server's certificate will not "
|
help=_("If set, then the server's certificate will not "
|
||||||
"be verified."),
|
"be verified.")),
|
||||||
cfg.StrOpt('os-cacert',
|
cfg.StrOpt('os-cacert',
|
||||||
help='Optional CA cert file to use in SSL connections.'),
|
help=_('Optional CA cert file to use in SSL connections.')),
|
||||||
cfg.StrOpt('os-cert',
|
cfg.StrOpt('os-cert',
|
||||||
help='Optional PEM-formatted certificate chain file.'),
|
help=_('Optional PEM-formatted certificate chain file.')),
|
||||||
cfg.StrOpt('os-key',
|
cfg.StrOpt('os-key',
|
||||||
help='Optional PEM-formatted file that contains the '
|
help=_('Optional PEM-formatted file that contains the '
|
||||||
'private key.'),
|
'private key.')),
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -212,7 +212,7 @@ def add_command_parsers(subparsers):
|
||||||
|
|
||||||
command_opt = cfg.SubCommandOpt('command',
|
command_opt = cfg.SubCommandOpt('command',
|
||||||
title='Commands',
|
title='Commands',
|
||||||
help='Show available commands.',
|
help=_('Show available commands.'),
|
||||||
handler=add_command_parsers)
|
handler=add_command_parsers)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
|
||||||
|
from heat.common.i18n import _
|
||||||
from heat.common import messaging
|
from heat.common import messaging
|
||||||
|
|
||||||
SERVICE = 'orchestration'
|
SERVICE = 'orchestration'
|
||||||
|
@ -22,9 +23,10 @@ ERROR = 'ERROR'
|
||||||
notifier_opts = [
|
notifier_opts = [
|
||||||
cfg.StrOpt('default_notification_level',
|
cfg.StrOpt('default_notification_level',
|
||||||
default=INFO,
|
default=INFO,
|
||||||
help='Default notification level for outgoing notifications.'),
|
help=_('Default notification level for outgoing'
|
||||||
|
'notifications.')),
|
||||||
cfg.StrOpt('default_publisher_id',
|
cfg.StrOpt('default_publisher_id',
|
||||||
help='Default publisher_id for outgoing notifications.'),
|
help=_('Default publisher_id for outgoing notifications.')),
|
||||||
]
|
]
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
CONF.register_opts(notifier_opts)
|
CONF.register_opts(notifier_opts)
|
||||||
|
|
Loading…
Reference in New Issue