Fixes aggressive use of translation hints

The oslo.i18n docs say not to use the hints if the message will
ultimately be user facing:
    http://docs.openstack.org/developer/oslo.i18n/guidelines.html

Change-Id: I7162bcb3dd23f5df2f1220ec531b2e40b2588ce2
This commit is contained in:
David Stanek 2014-09-30 23:18:41 +00:00
parent dcf086fa09
commit 6dad8c8806
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ from pycadf import credential
from pycadf import eventfactory
from pycadf import resource
from keystone.i18n import _, _LE
from keystone.i18n import _
from keystone.openstack.common import log
@ -173,7 +173,7 @@ def register_event_callback(event, resource_type, callbacks):
for callback in callbacks:
if not callable(callback):
msg = _LE('Method not callable: %s') % callback
msg = _('Method not callable: %s') % callback
LOG.error(msg)
raise TypeError(msg)
_SUBSCRIBERS.setdefault(event, {}).setdefault(resource_type, set())