From 3046089feb155cff40bba2835659f992471cb462 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Mon, 15 Feb 2016 00:39:48 -0800 Subject: [PATCH] Remove deprecated warnings vmware_nsx/extensions/dns_search_domain.py:40: DeprecationWarning: Using function/method 'instance.ugettext()' is deprecated: Builtin _ translation function is deprecated in OpenStack; use the function from _i18n module for your project. _("Name '%s' must be 1-63 characters long, each of " TrivialFix Change-Id: If4540986497903eb2d8a841903f568526225bf51 --- vmware_nsx/extensions/dns_search_domain.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vmware_nsx/extensions/dns_search_domain.py b/vmware_nsx/extensions/dns_search_domain.py index fb62c7c9f4..e286af8635 100644 --- a/vmware_nsx/extensions/dns_search_domain.py +++ b/vmware_nsx/extensions/dns_search_domain.py @@ -17,6 +17,7 @@ import re from neutron.api import extensions from neutron.api.v2 import attributes +from vmware_nsx._i18n import _ DNS_LABEL_MAX_LEN = 63 DNS_LABEL_REGEX = "[a-zA-Z0-9-]{1,%d}$" % DNS_LABEL_MAX_LEN