From 2e7d2550b9c64a33910a567c3433a12f3e68f25a Mon Sep 17 00:00:00 2001 From: Daniel Badea Date: Tue, 17 Sep 2019 11:10:22 +0000 Subject: [PATCH] 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 --- ceph/python-cephclient/python-cephclient/cephclient/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph/python-cephclient/python-cephclient/cephclient/client.py b/ceph/python-cephclient/python-cephclient/cephclient/client.py index f27b1b36..fcd605b8 100644 --- a/ceph/python-cephclient/python-cephclient/cephclient/client.py +++ b/ceph/python-cephclient/python-cephclient/cephclient/client.py @@ -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 '