From 3111ed22a9c435e59ffadcf2fb0c49a7f3ec543f Mon Sep 17 00:00:00 2001 From: Trinh Nguyen Date: Thu, 26 Sep 2019 23:03:14 +0900 Subject: [PATCH] Remove _LE variable log translation has been removed [1]. This patch fixes python-searchlightclient by removing remaining _LE variable from i18n. [1] https://opendev.org/openstack/python-searchlightclient/commit/4f237553e9940bff4f58f13498661b43716674ee Change-Id: I923adc33992baa0c6f0e41fd1d6ae0d951ecde7f Signed-off-by: Trinh Nguyen Story: #2006440 Task: #36355 --- searchlightclient/common/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/searchlightclient/common/utils.py b/searchlightclient/common/utils.py index b9240c6..92074a2 100644 --- a/searchlightclient/common/utils.py +++ b/searchlightclient/common/utils.py @@ -31,7 +31,6 @@ import yaml from searchlightclient import exc from searchlightclient.i18n import _ -from searchlightclient.i18n import _LE LOG = logging.getLogger(__name__) @@ -312,7 +311,7 @@ def get_response_body(resp): try: body = resp.json() except ValueError: - LOG.error(_LE('Could not decode response body as JSON')) + LOG.error('Could not decode response body as JSON') else: body = None return body