Update i18n translation for neutron.extension log msg's
Validate that hacking rules apply to directory neutron/extensions Change-Id: Ifbc97ae2b5670fbdf22c7d0ae48f91a7776daf01 Partial-bug: #1320867
This commit is contained in:
parent
a12cba9ba4
commit
437d1bbee9
@ -25,6 +25,7 @@ from neutron.common import exceptions
|
|||||||
from neutron.common import rpc as n_rpc
|
from neutron.common import rpc as n_rpc
|
||||||
from neutron.extensions import agent
|
from neutron.extensions import agent
|
||||||
from neutron import manager
|
from neutron import manager
|
||||||
|
from neutron.openstack.common.gettextutils import _LE
|
||||||
from neutron.openstack.common import log as logging
|
from neutron.openstack.common import log as logging
|
||||||
from neutron.plugins.common import constants as service_constants
|
from neutron.plugins.common import constants as service_constants
|
||||||
from neutron import policy
|
from neutron import policy
|
||||||
@ -45,8 +46,8 @@ class RouterSchedulerController(wsgi.Controller):
|
|||||||
plugin = manager.NeutronManager.get_service_plugins().get(
|
plugin = manager.NeutronManager.get_service_plugins().get(
|
||||||
service_constants.L3_ROUTER_NAT)
|
service_constants.L3_ROUTER_NAT)
|
||||||
if not plugin:
|
if not plugin:
|
||||||
LOG.error(_('No plugin for L3 routing registered to handle '
|
LOG.error(_LE('No plugin for L3 routing registered to handle '
|
||||||
'router scheduling'))
|
'router scheduling'))
|
||||||
msg = _('The resource could not be found.')
|
msg = _('The resource could not be found.')
|
||||||
raise webob.exc.HTTPNotFound(msg)
|
raise webob.exc.HTTPNotFound(msg)
|
||||||
return plugin
|
return plugin
|
||||||
@ -88,8 +89,8 @@ class L3AgentsHostingRouterController(wsgi.Controller):
|
|||||||
plugin = manager.NeutronManager.get_service_plugins().get(
|
plugin = manager.NeutronManager.get_service_plugins().get(
|
||||||
service_constants.L3_ROUTER_NAT)
|
service_constants.L3_ROUTER_NAT)
|
||||||
if not plugin:
|
if not plugin:
|
||||||
LOG.error(_('No plugin for L3 routing registered to handle '
|
LOG.error(_LE('No plugin for L3 routing registered to handle '
|
||||||
'router scheduling'))
|
'router scheduling'))
|
||||||
msg = _('The resource could not be found.')
|
msg = _('The resource could not be found.')
|
||||||
raise webob.exc.HTTPNotFound(msg)
|
raise webob.exc.HTTPNotFound(msg)
|
||||||
return plugin
|
return plugin
|
||||||
|
@ -46,7 +46,8 @@ def _directory_to_check_translation(filename):
|
|||||||
# series will remove this and the entire code base will be validated.
|
# series will remove this and the entire code base will be validated.
|
||||||
dirs = ["neutron/agent",
|
dirs = ["neutron/agent",
|
||||||
"neutron/cmd",
|
"neutron/cmd",
|
||||||
"neutron/db"]
|
"neutron/db",
|
||||||
|
"neutron/extensions"]
|
||||||
return any([dir in filename for dir in dirs])
|
return any([dir in filename for dir in dirs])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user