Fix oslo _i18n issue
While trying to regenerate the .conf files, the gen-oslo-openstack-helm
tool spits back an error because of the removal of log translations in
OpenStack [0]. This patch set replaces the removed _LW() with the default
_() so the tool does not error out unexpectedly.
[0] d5e3652d12
Change-Id: I665775ae075b6ce0d1aa74ca5732e9e6566ff174
This commit is contained in:
parent
054ac68e92
commit
c8f225ef91
@ -28,7 +28,7 @@ import traceback
|
|||||||
import pkg_resources
|
import pkg_resources
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from oslo_config._i18n import _LW
|
from oslo_config._i18n import _
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
|
||||||
from oslo_config.generator import _get_groups, _list_opts, _format_defaults, \
|
from oslo_config.generator import _get_groups, _list_opts, _format_defaults, \
|
||||||
@ -420,7 +420,7 @@ class _HelmOptFormatter(object):
|
|||||||
:returns: a formatted opt description string
|
:returns: a formatted opt description string
|
||||||
"""
|
"""
|
||||||
if not opt.help:
|
if not opt.help:
|
||||||
LOG.warning(_LW('"%s" is missing a help string'), opt.dest)
|
LOG.warning(_('"%s" is missing a help string'), opt.dest)
|
||||||
|
|
||||||
opt_type = _format_type_name(opt.type)
|
opt_type = _format_type_name(opt.type)
|
||||||
opt_prefix = ''
|
opt_prefix = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user