]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Do not append to messages with +
authorLuis A. Garcia <luis@linux.vnet.ibm.com>
Thu, 16 Jan 2014 00:01:05 +0000 (00:01 +0000)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:18 +0000 (15:20 +0800)
Some code was appending to translated messages using +, which
oslo-incubator's new gettextutils doesn't support.

The code was changed to use a substitution value in the message
instead.

Part of bp user-locale-api

Change-Id: If2bc1821d0057c4cd53ead7eac1712284464b9bf

neutron/plugins/bigswitch/plugin.py

index 4c1366e6113d8da580968e3e54051dce882a3037..cbeafcfd2c9da9873e6fa15edc3c0de8bab2d06a 100644 (file)
@@ -340,7 +340,7 @@ class ServerPool(object):
             ignore_codes = [404]
         resp = self.rest_call(action, resource, data, headers, ignore_codes)
         if self.server_failure(resp, ignore_codes):
-            LOG.error(_("NeutronRestProxyV2: ") + errstr, resp[2])
+            LOG.error(errstr, resp[2])
             raise RemoteRestError(reason=resp[2])
         if resp[0] in ignore_codes:
             LOG.warning(_("NeutronRestProxyV2: Received and ignored error "