mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Fix bug when TLS is used (#432)
* Fix bug when TLS is used. * Add HTTP/HTTPS connection test.
This commit is contained in:
@@ -71,7 +71,7 @@ def is_using_tls(auth_data):
|
||||
|
||||
def get_connect_params(auth_data, fail_function):
|
||||
if is_using_tls(auth_data):
|
||||
auth['docker_host'] = auth_data['docker_host'].replace('tcp://', 'https://')
|
||||
auth_data['docker_host'] = auth_data['docker_host'].replace('tcp://', 'https://')
|
||||
|
||||
result = dict(
|
||||
base_url=auth_data['docker_host'],
|
||||
|
||||
Reference in New Issue
Block a user