It appears that I missed some of the needed explicit
imports of _. I have now run through all the /bin/cinder-*
functions and ensured that they can be properly started.
This patch adds additional imports of _ and also changes
cinder-rtstool to use the 'cinder' domain as was suggested by
Duncan Thomas in the first review cycle.
Change-Id: I6477093cb817b5b9506dd3787f027e073c51f37d
Closes-Bug:
1345789
# Need to register global_opts
from cinder.common import config # noqa
+from cinder.openstack.common.gettextutils import _
from cinder.openstack.common import log as logging
from cinder import service
from cinder import utils
from cinder import context
from cinder import db
from cinder.db import migration
+from cinder.openstack.common.gettextutils import _
from cinder.openstack.common import log as logging
from cinder.openstack.common import uuidutils
from cinder import rpc
# See the License for the specific language governing permissions and
# limitations under the License.
-import gettext
import sys
import rtslib
-gettext.install('cinder-rtstool', unicode=1)
-gettext.enable_lazy()
+from cinder.openstack.common import gettextutils
+from cinder.openstack.common.gettextutils import _
+
+gettextutils.install('cinder')
+gettextutils.enable_lazy()
class RtstoolError(Exception):
from cinder import context
from cinder import db
+from cinder.openstack.common.gettextutils import _
from cinder.openstack.common import log as logging
from cinder import rpc
from cinder import utils