From 296403319182a62c737363872f9e57d56bc2669d Mon Sep 17 00:00:00 2001 From: daisy-ycguo Date: Mon, 19 Nov 2012 14:07:16 +0800 Subject: Wrap log messages with _() bug 1075082 There are a few log messages without _(), but a lot messages with _(). Wrap these log messages with _() in order to make the code consistent. Change-Id: Ibaff2c352df925f7e00d5a62d111ef73f60c944b --- nova/api/ec2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/api') diff --git a/nova/api/ec2/__init__.py b/nova/api/ec2/__init__.py index 28b946a8b..22771b589 100644 --- a/nova/api/ec2/__init__.py +++ b/nova/api/ec2/__init__.py @@ -256,7 +256,7 @@ class EC2KeystoneAuth(wsgi.Middleware): roles = [role['name'] for role in result['access']['user']['roles']] except (AttributeError, KeyError), e: - LOG.exception("Keystone failure: %s" % e) + LOG.exception(_("Keystone failure: %s") % e) msg = _("Failure communicating with keystone") return ec2_error(req, request_id, "Unauthorized", msg) -- cgit