boto / boto

For the latest version of boto, see https://github.com/boto/boto3 -- Python interface to Amazon Web Services

Home Page:http://docs.pythonboto.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DefaultHost in connection.py

martin3000 opened this issue · comments

In connection.py class S3Connection, function init:
If there is no host, no_host_provided becomes True and the code is running into the part "raise HostRequiredError".
So what is the "DefaultHost" good for?

if host is None:
host = self.DefaultHost
no_host_provided = True

This appears wrong to me.