From 3ac3a9945a3f85ea003cef12b96021c3025fd0f6 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 18 Jun 2015 10:25:19 -0400 Subject: [PATCH] use netloc instead of hostname Signed-off-by: Alfredo Deza --- radosgw_agent/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radosgw_agent/client.py b/radosgw_agent/client.py index e55d1fa..23bbf4e 100644 --- a/radosgw_agent/client.py +++ b/radosgw_agent/client.py @@ -66,7 +66,7 @@ def parse_endpoint(endpoint): raise exc.InvalidProtocol('invalid protocol %r' % url.scheme) if not url.hostname: raise exc.InvalidHost('no hostname in %r' % endpoint) - return Endpoint(url.hostname, url.port, url.scheme == 'https') + return Endpoint(url.netloc, url.port, url.scheme == 'https') code_to_exc = { 404: exc.NotFound, -- 2.47.3