Use _LW for deprecation warning
A deprecation warning used _() function that was not imported and triggered an arror. This commit changes the tr function to _LW Closes-Bug: #1560547 Change-Id: Ica154b35b289b1a250f5acbdc1c77175b7447637
This commit is contained in:
parent
f46b9caa66
commit
07d659bd79
|
@ -100,8 +100,9 @@ class ApiPackageLoader(package_loader.MuranoPackageLoader):
|
|||
if CONF.engine.packages_service in ['glance', 'glare']:
|
||||
if CONF.engine.packages_service == 'glance':
|
||||
versionutils.report_deprecated_feature(
|
||||
LOG, _("'glance' packages_service option has been renamed "
|
||||
"to 'glare', please update your configuration"))
|
||||
LOG,
|
||||
_LW("'glance' packages_service option has been renamed "
|
||||
"to 'glare', please update your configuration"))
|
||||
artifacts_client = self._get_glare_client()
|
||||
else:
|
||||
artifacts_client = None
|
||||
|
|
Loading…
Reference in New Issue