Merge pull request #892 from docker/base_url_none

Don't break if base_url == None and TLS is enabled
This commit is contained in:
Daniel Nephin 2016-01-11 11:18:42 -05:00
commit e2878cbcc3
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class Client(
timeout=constants.DEFAULT_TIMEOUT_SECONDS, tls=False):
super(Client, self).__init__()
if tls and not base_url.startswith('https://'):
if tls and (not base_url or not base_url.startswith('https://')):
raise errors.TLSParameterError(
'If using TLS, the base_url argument must begin with '
'"https://".')