QOS: add in missing translation

Commit 0a33e355bc did not add in a
translation for a reason.

TrivialFix

Change-Id: I3f0dfb98d0c184e9b065e5e3f77ba5105672a4e3
This commit is contained in:
Gary Kotton 2015-12-16 23:55:04 -08:00
parent b8d281a303
commit 482c68994d
1 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@
from oslo_versionedobjects import base as obj_base
from oslo_versionedobjects import fields as obj_fields
from neutron._i18n import _
from neutron.common import exceptions
from neutron.db import api as db_api
from neutron.db.qos import api as qos_db_api
@ -54,7 +55,8 @@ class QosPolicy(base.NeutronDbObject):
def obj_load_attr(self, attrname):
if attrname != 'rules':
raise exceptions.ObjectActionError(
action='obj_load_attr', reason='unable to load %s' % attrname)
action='obj_load_attr',
reason=_('unable to load %s') % attrname)
if not hasattr(self, attrname):
self.reload_rules()