From 85646cf19ac0275504345c9528bc867cef414501 Mon Sep 17 00:00:00 2001 From: Erik Olof Gunnar Andersson Date: Sun, 30 Jul 2023 18:41:54 +0200 Subject: [PATCH] Use i18n and not gettext for infoblox Change-Id: I76d414775dd67865d71f23f5cb945003dc9e7c53 --- designate/backend/impl_infoblox/ibexceptions.py | 6 +----- designate/backend/impl_infoblox/object_manipulator.py | 7 +------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/designate/backend/impl_infoblox/ibexceptions.py b/designate/backend/impl_infoblox/ibexceptions.py index dc319fc07..13697925a 100644 --- a/designate/backend/impl_infoblox/ibexceptions.py +++ b/designate/backend/impl_infoblox/ibexceptions.py @@ -12,12 +12,8 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. - -import gettext - from designate import exceptions - -_ = gettext.gettext +from designate.i18n import _ class InfobloxExceptionBase(exceptions.Backend): diff --git a/designate/backend/impl_infoblox/object_manipulator.py b/designate/backend/impl_infoblox/object_manipulator.py index dbbb431d1..79b7fa761 100644 --- a/designate/backend/impl_infoblox/object_manipulator.py +++ b/designate/backend/impl_infoblox/object_manipulator.py @@ -12,15 +12,10 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. - - -import gettext - from oslo_log import log from designate.backend.impl_infoblox import ibexceptions as exc - -_ = gettext.gettext +from designate.i18n import _ LOG = log.getLogger(__name__)