Merge "ibm_storage: Remove unused _get_os_type method"

This commit is contained in:
Zuul 2022-07-11 19:56:04 +00:00 committed by Gerrit Code Review
commit b103d7a2a7
1 changed files with 0 additions and 7 deletions

View File

@ -16,7 +16,6 @@
import functools
import gettext
import inspect
import platform
from oslo_log import log as logging
from oslo_utils import timeutils
@ -240,12 +239,6 @@ class IBMStorageProxy(object):
'wwpns': wwpns,
'chap': chap}
@_trace_time
def _get_os_type(self):
"""Gets a string representation of the current os"""
dist = platform.dist()
return "%s-%s-%s" % (dist[0], dist[1], platform.processor())
def _log(self, level, message, **kwargs):
"""Wrapper around the logger"""
to_log = _(self.prefix + message) # NOQA