summaryrefslogtreecommitdiff
path: root/novaclient/v2/hypervisors.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/v2/hypervisors.py')
-rw-r--r--novaclient/v2/hypervisors.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/novaclient/v2/hypervisors.py b/novaclient/v2/hypervisors.py
index e6f5038c..c705dc65 100644
--- a/novaclient/v2/hypervisors.py
+++ b/novaclient/v2/hypervisors.py
@@ -17,9 +17,7 @@
Hypervisors interface
"""
-from oslo_utils import encodeutils
-import six
-from six.moves.urllib import parse
+from urllib import parse
from novaclient import api_versions
from novaclient import base
@@ -92,8 +90,6 @@ class HypervisorManager(base.ManagerWithFind):
# Starting with microversion 2.53, the /servers and /search routes are
# deprecated and we get the same results using GET /os-hypervisors
# using query parameters for the hostname pattern and servers.
- if six.PY2:
- hypervisor_match = encodeutils.safe_encode(hypervisor_match)
if self.api_version >= api_versions.APIVersion('2.53'):
url = ('/os-hypervisors%s?hypervisor_hostname_pattern=%s' %
('/detail' if detailed else '',