@@ -32,7 +32,7 @@ def __init__(self, client_cert=None, ca_cert=None, verify=None,
3232 # https://docs.docker.com/engine/articles/https/
3333 # This diverges from the Docker CLI in that users can specify 'tls'
3434 # here, but also disable any public/default CA pool verification by
35- # leaving tls_verify =False
35+ # leaving verify =False
3636
3737 self .assert_hostname = assert_hostname
3838 self .assert_fingerprint = assert_fingerprint
@@ -62,7 +62,7 @@ def __init__(self, client_cert=None, ca_cert=None, verify=None,
6262 # https://github.com/docker/docker-py/issues/963
6363 self .ssl_version = ssl .PROTOCOL_TLSv1
6464
65- # "tls" and "tls_verify" must have both or neither cert/key files In
65+ # "client_cert" must have both or neither cert/key files. In
6666 # either case, Alert the user when both are expected, but any are
6767 # missing.
6868
@@ -71,15 +71,15 @@ def __init__(self, client_cert=None, ca_cert=None, verify=None,
7171 tls_cert , tls_key = client_cert
7272 except ValueError :
7373 raise errors .TLSParameterError (
74- 'client_config must be a tuple of'
74+ 'client_cert must be a tuple of'
7575 ' (client certificate, key file)'
7676 )
7777
7878 if not (tls_cert and tls_key ) or (not os .path .isfile (tls_cert ) or
7979 not os .path .isfile (tls_key )):
8080 raise errors .TLSParameterError (
8181 'Path to a certificate and key files must be provided'
82- ' through the client_config param'
82+ ' through the client_cert param'
8383 )
8484 self .cert = (tls_cert , tls_key )
8585
@@ -88,7 +88,7 @@ def __init__(self, client_cert=None, ca_cert=None, verify=None,
8888 self .ca_cert = ca_cert
8989 if self .verify and self .ca_cert and not os .path .isfile (self .ca_cert ):
9090 raise errors .TLSParameterError (
91- 'Invalid CA certificate provided for `tls_ca_cert `.'
91+ 'Invalid CA certificate provided for `ca_cert `.'
9292 )
9393
9494 def configure_client (self , client ):
0 commit comments