diff --git a/cinder/api/contrib/admin_actions.py b/cinder/api/contrib/admin_actions.py index 89493bb8f63..19df8f80414 100644 --- a/cinder/api/contrib/admin_actions.py +++ b/cinder/api/contrib/admin_actions.py @@ -229,9 +229,9 @@ class VolumeAdminController(AdminController): except messaging.RemoteError as error: if error.exc_type in ['VolumeAttachmentNotFound', 'InvalidVolume']: - msg = "Error force detaching volume - %(err_type)s: " \ - "%(err_msg)s" % {'err_type': error.exc_type, - 'err_msg': error.value} + msg = _("Error force detaching volume - %(err_type)s: " + "%(err_msg)s") % {'err_type': error.exc_type, + 'err_msg': error.value} raise webob.exc.HTTPBadRequest(explanation=msg) else: # There are also few cases where force-detach call could fail