mirror of https://github.com/docker/compose.git
Fix error message for unrecognised TLS version
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
1bf0cd07de
commit
e115eaf6fc
|
@ -65,8 +65,9 @@ def get_tls_version(environment):
|
||||||
tls_attr_name = "PROTOCOL_{}".format(compose_tls_version)
|
tls_attr_name = "PROTOCOL_{}".format(compose_tls_version)
|
||||||
if not hasattr(ssl, tls_attr_name):
|
if not hasattr(ssl, tls_attr_name):
|
||||||
log.warn(
|
log.warn(
|
||||||
'The {} protocol is unavailable. You may need to update your '
|
'The "{}" protocol is unavailable. You may need to update your '
|
||||||
'version of Python or OpenSSL. Falling back to TLSv1 (default).'
|
'version of Python or OpenSSL. Falling back to TLSv1 (default).'
|
||||||
|
.format(compose_tls_version)
|
||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue