Docker SDK for Python 7+: make sure that ssl_version is not passed, and error out if it was explicitly set (#715)

* Do not accept ssl_version for Docker SDK for Python 7.0.0+.

* Add changelog fragment.

* Generally avoid sending None values to TLSConfig. Potentially prevents similar errors in the future, assuming the users do not pass values in.

* Python 2.6 compatibility.
This commit is contained in:
Felix Fontein
2023-12-09 18:59:06 +01:00
committed by GitHub
parent 4929ef603a
commit 3aa1ddcca0
3 changed files with 18 additions and 0 deletions
+2
View File
@@ -72,6 +72,8 @@ options:
- Provide a valid SSL version number. Default value determined by L(SSL Python module, https://docs.python.org/3/library/ssl.html).
- If the value is not specified in the task, the value of environment variable E(DOCKER_SSL_VERSION) will be
used instead.
- B(Note:) this option is no longer supported for Docker SDK for Python 7.0.0+. Specifying it with Docker SDK for
Python 7.0.0 or newer will lead to an error.
type: str
tls:
description: