]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Log hints should only be used for log messages
authorGary Kotton <gkotton@vmware.com>
Tue, 3 Nov 2015 13:07:48 +0000 (05:07 -0800)
committerGal Sagie <gal.sagie@huawei.com>
Thu, 5 Nov 2015 03:37:49 +0000 (03:37 +0000)
Removed log hints for exception translations.

Please see http://docs.openstack.org/developer/oslo.i18n/guidelines.html

TrivialFix

Change-Id: I6c46867568811d24964daa7468acf704f69b01b6

neutron/agent/linux/ip_lib.py

index a86955eef5741868ca0d715ef42750e9c05cdc5f..a9fbfc527bd23926251441fc5d59359c2594e3f2 100644 (file)
@@ -593,14 +593,14 @@ class IpAddrCommand(IpDeviceCommandBase):
             except IndexError:
                 raise AddressNotReady(
                     address=address,
-                    reason=_LE('Address not present on interface'))
+                    reason=_('Address not present on interface'))
             if not addr_info['tentative']:
                 return True
             if addr_info['dadfailed']:
                 raise AddressNotReady(
-                    address=address, reason=_LE('Duplicate adddress detected'))
-        errmsg = _LE("Exceeded %s second limit waiting for "
-                     "address to leave the tentative state.") % wait_time
+                    address=address, reason=_('Duplicate adddress detected'))
+        errmsg = _("Exceeded %s second limit waiting for "
+                   "address to leave the tentative state.") % wait_time
         utils.utils.wait_until_true(
             is_address_ready, timeout=wait_time, sleep=0.20,
             exception=AddressNotReady(address=address, reason=errmsg))