]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
use netloc instead of hostname
authorAlfredo Deza <adeza@redhat.com>
Thu, 18 Jun 2015 14:25:19 +0000 (10:25 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 18 Jun 2015 14:25:19 +0000 (10:25 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
radosgw_agent/client.py

index e55d1fa6302ab0c15cfc86da392e8d5a701defc3..23bbf4e0699aff5effac7b917269c05213fbd8ac 100644 (file)
@@ -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,