From 536ea85fafcf1da11445cdc12c83f37516e99003 Mon Sep 17 00:00:00 2001 From: Gary Kotton <gkotton@vmware.com> Date: Sat, 14 Jan 2017 14:40:05 +0200 Subject: [PATCH] L3: Add in missing translation Commit a7c633dc8e8a67e65e558ecbdf9ea8efc5468251 missed a translation for a exception that is raised. TrivialFix Change-Id: Ib47a743ef05a2f9b235daf8d06ecd47d8b840fa0 --- neutron/db/l3_attrs_db.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neutron/db/l3_attrs_db.py b/neutron/db/l3_attrs_db.py index 38c758ff294..cdc6755c02c 100644 --- a/neutron/db/l3_attrs_db.py +++ b/neutron/db/l3_attrs_db.py @@ -14,6 +14,7 @@ from oslo_config import cfg +from neutron._i18n import _ from neutron.common import _deprecate from neutron.db import db_base_plugin_v2 from neutron.db.models import l3_attrs @@ -61,8 +62,8 @@ class ExtraAttributesMixin(object): self._ensure_extra_attr_model(context, router_db) router_db['extra_attributes'].update({key: to_db(value)}) return - raise RuntimeError("Tried to set a key '%s' that doesn't exist in " - "the extra attributes table." % key) + raise RuntimeError(_("Tried to set a key '%s' that doesn't exist " + "in the extra attributes table.") % key) db_base_plugin_v2.NeutronDbPluginV2.register_dict_extend_funcs( l3.ROUTERS, ['_extend_extra_router_dict'])