From: Alfredo Deza Date: Thu, 18 Jun 2015 14:25:19 +0000 (-0400) Subject: use netloc instead of hostname X-Git-Tag: v1.2.3~3^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3ac3a9945a3f85ea003cef12b96021c3025fd0f6;p=radosgw-agent.git use netloc instead of hostname Signed-off-by: Alfredo Deza --- 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,