Merge pull request #947 from ansible/docker-tls-none

When no use_tls is not specified and no tls parameters are given we need to not attempt tls.
This commit is contained in:
Toshio Kuratomi 2015-03-16 11:29:14 -07:00
commit ceda82603a

View file

@ -589,12 +589,8 @@ class DockerManager(object):
# or tls_ca_cert (which requests verifying the server with
# a specific ca certificate)
use_tls = module.params.get('use_tls')
if use_tls == 'no':
tls_config = None
else:
# If this stays True, we'll do encryption. If something overrides
# it, then we'll have a TLSConfig obj instead
tls_config = True
tls_config = None
if use_tls != 'no':
params = {}
# Setup client auth