python-cephclient: fix urlparse function call

urlparse import for python3 adds urlparse function to the
global namespace instead of a module name. Existing code
calling urlparse.urlparse() fails because of that.

Replace urlparse.urlparse() with urlparse().

Change-Id: I61c749b9beb8b5a09e82c8bc93087348b2c20d73
Closes-bug: 1828470
Signed-off-by: Daniel Badea <daniel.badea@windriver.com>
This commit is contained in:
Daniel Badea 2019-09-17 11:10:22 +00:00
parent 613276c944
commit 2e7d2550b9
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class CephClient(object):
def _get_certificate(self):
self._cleanup_certificate()
url = urlparse.urlparse(self.service_url)
url = urlparse(self.service_url)
try:
certificate = subprocess.check_output(
('ceph config-key get '