Merge "QOS: add in missing translation"
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
from oslo_versionedobjects import base as obj_base
|
from oslo_versionedobjects import base as obj_base
|
||||||
from oslo_versionedobjects import fields as obj_fields
|
from oslo_versionedobjects import fields as obj_fields
|
||||||
|
|
||||||
|
from neutron._i18n import _
|
||||||
from neutron.common import exceptions
|
from neutron.common import exceptions
|
||||||
from neutron.db import api as db_api
|
from neutron.db import api as db_api
|
||||||
from neutron.db.qos import api as qos_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):
|
def obj_load_attr(self, attrname):
|
||||||
if attrname != 'rules':
|
if attrname != 'rules':
|
||||||
raise exceptions.ObjectActionError(
|
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):
|
if not hasattr(self, attrname):
|
||||||
self.reload_rules()
|
self.reload_rules()
|
||||||
|
|||||||
Reference in New Issue
Block a user