diff options
author | Stephen Finucane <stephenfin@redhat.com> | 2020-05-18 16:56:35 +0100 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2020-05-18 17:00:41 +0100 |
commit | 3a28b0e7717145bfb336138fb74a015913195725 (patch) | |
tree | 3a211c1d29dae0017fcf0c4610f8519ccf268e31 /nova/utils.py | |
parent | eee57f2380518131338dbff3d63803e15b68e7fa (diff) | |
download | nova-3a28b0e7717145bfb336138fb74a015913195725.tar.gz |
trivial: Remove remaining '_LW' instances
There are only a few of these remaining in the code base. Remove them.
Change-Id: I33725e2439b0f39c1e9bec9e33a37bf3e24944fb
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'nova/utils.py')
-rw-r--r-- | nova/utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/utils.py b/nova/utils.py index 20692d43d6..ed26d006f2 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -53,7 +53,7 @@ from six.moves import range from nova import block_device import nova.conf from nova import exception -from nova.i18n import _, _LW +from nova.i18n import _ from nova import safe_utils profiler = importutils.try_import('osprofiler.profiler') @@ -372,9 +372,9 @@ def sanitize_hostname(hostname, default_name=None): def truncate_hostname(name): if len(name) > 63: - LOG.warning(_LW("Hostname %(hostname)s is longer than 63, " - "truncate it to %(truncated_name)s"), - {'hostname': name, 'truncated_name': name[:63]}) + LOG.warning("Hostname %(hostname)s is longer than 63, " + "truncate it to %(truncated_name)s", + {'hostname': name, 'truncated_name': name[:63]}) return name[:63] if isinstance(hostname, six.text_type): |