Merge "Remove ureachable code in fakes.py"
This commit is contained in:
@@ -300,11 +300,6 @@ class FakeHTTPClient(base_client.HTTPClient):
|
|||||||
})
|
})
|
||||||
return r, body
|
return r, body
|
||||||
|
|
||||||
if hasattr(status, 'items'):
|
|
||||||
return utils.TestResponse(status), body
|
|
||||||
else:
|
|
||||||
return utils.TestResponse({"status": status}), body
|
|
||||||
|
|
||||||
def get_volume_api_version_from_endpoint(self):
|
def get_volume_api_version_from_endpoint(self):
|
||||||
magic_tuple = urlparse.urlsplit(self.management_url)
|
magic_tuple = urlparse.urlsplit(self.management_url)
|
||||||
scheme, netloc, path, query, frag = magic_tuple
|
scheme, netloc, path, query, frag = magic_tuple
|
||||||
|
Reference in New Issue
Block a user