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:
parent
613276c944
commit
2e7d2550b9
@ -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 '
|
||||
|
Loading…
Reference in New Issue
Block a user