Fix for invalid literal ValueError parsing ipv6 url(s)
Switch to using network_utils for splitting the URL. The code in oslo-incubator supports ipv6 urls Change-Id: I76be6173b97eb000319d30b4e9232a5a7c4a5aba Closes-Bug: #1298137
This commit is contained in:
@@ -39,6 +39,7 @@ import OpenSSL
|
||||
|
||||
from glanceclient.common import utils
|
||||
from glanceclient import exc
|
||||
from glanceclient.openstack.common import network_utils
|
||||
from glanceclient.openstack.common import strutils
|
||||
|
||||
try:
|
||||
@@ -85,7 +86,7 @@ class HTTPClient(object):
|
||||
|
||||
@staticmethod
|
||||
def parse_endpoint(endpoint):
|
||||
return parse.urlparse(endpoint)
|
||||
return network_utils.urlsplit(endpoint)
|
||||
|
||||
@staticmethod
|
||||
def get_connection_class(scheme):
|
||||
|
||||
Reference in New Issue
Block a user