Deprecate default for tls_hostname (#134)

* Start removing default.

* Add deprecate() function to AnsibleDockerClientBase.

* Deprecate default value for tls_hostname.

* Add changelog.

* Mention deprecation in documentation.
This commit is contained in:
Felix Fontein
2021-05-04 07:50:33 +02:00
committed by GitHub
parent 887472e60d
commit cffba7b15d
4 changed files with 34 additions and 7 deletions
+3 -1
View File
@@ -27,8 +27,10 @@ options:
- When verifying the authenticity of the Docker Host server, provide the expected name of the server.
- If the value is not specified in the task, the value of environment variable C(DOCKER_TLS_HOSTNAME) will
be used instead. If the environment variable is not set, the default value will be used.
- The current default value is C(localhost). This default is deprecated and will change in community.docker
2.0.0 to be a value computed from I(docker_host). Explicitly specify C(localhost) to make sure this value
will still be used, and to disable the deprecation message which will be shown otherwise.
type: str
default: localhost
api_version:
description:
- The version of the Docker API running on the Docker Host.