From: Gary Kotton Date: Tue, 3 Nov 2015 13:07:48 +0000 (-0800) Subject: Log hints should only be used for log messages X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ed670f4412acd3f22f8746650c0f1394c9164c5e;p=openstack-build%2Fneutron-build.git Log hints should only be used for log messages Removed log hints for exception translations. Please see http://docs.openstack.org/developer/oslo.i18n/guidelines.html TrivialFix Change-Id: I6c46867568811d24964daa7468acf704f69b01b6 --- diff --git a/neutron/agent/linux/ip_lib.py b/neutron/agent/linux/ip_lib.py index a86955eef..a9fbfc527 100644 --- a/neutron/agent/linux/ip_lib.py +++ b/neutron/agent/linux/ip_lib.py @@ -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))