Quotas: add in missing translation
Commit 5d597367cf
raised an
exception without a translation.
TrivialFix
Change-Id: Iaa4b4ca2b79505ded35221ab25d439aecf8d6d8a
This commit is contained in:
parent
80c1a6b981
commit
4984c7c24e
|
@ -14,7 +14,7 @@ from oslo_config import cfg
|
|||
from oslo_log import log
|
||||
import six
|
||||
|
||||
from neutron._i18n import _LI, _LW
|
||||
from neutron._i18n import _, _LI, _LW
|
||||
from neutron.quota import resource
|
||||
|
||||
LOG = log.getLogger(__name__)
|
||||
|
@ -191,8 +191,8 @@ class ResourceRegistry(object):
|
|||
|
||||
if isinstance(self._resources.get(resource_name),
|
||||
resource.CountableResource):
|
||||
raise RuntimeError("Resource %s is already registered as a "
|
||||
"countable resource." % resource_name)
|
||||
raise RuntimeError(_("Resource %s is already registered as a "
|
||||
"countable resource.") % resource_name)
|
||||
current_model_class = self._tracked_resource_mappings.setdefault(
|
||||
resource_name, model_class)
|
||||
|
||||
|
|
Loading…
Reference in New Issue