Add i18n translation common 5/5

This is patch 5 of 5 for adding i18n translation to common.
A custom hacking rule will enfornce these changes later.

Change-Id: If29f7b5df7f6958cec4b26f72babc47ca70f3706
This commit is contained in:
Trevor McCasland 2016-12-04 11:19:23 -06:00
parent 4f9c538f68
commit 324818ee75
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ import abc
from oslo_log import log as logging
import six
from trove.common.i18n import _
from trove.common import utils
@ -53,7 +54,7 @@ class Strategy(object):
ns = ns or cls.__strategy_ns__
if ns is None:
raise RuntimeError(
'No namespace provided or __strategy_ns__ unset')
_('No namespace provided and __strategy_ns__ unset'))
LOG.debug('Looking for strategy %s in %s', name, ns)