Reformat code with black and isort.

This commit is contained in:
Felix Fontein
2025-10-06 18:34:59 +02:00
parent f45232635c
commit d65d37e9e9
132 changed files with 17581 additions and 14729 deletions
+6 -6
View File
@@ -34,7 +34,7 @@ attributes:
"""
# Should be used together with the standard fragment
INFO_MODULE = r'''
INFO_MODULE = r"""
options: {}
attributes:
check_mode:
@@ -45,9 +45,9 @@ attributes:
support: N/A
details:
- This action does not modify state.
'''
"""
ACTIONGROUP_DOCKER = r'''
ACTIONGROUP_DOCKER = r"""
options: {}
attributes:
action_group:
@@ -56,7 +56,7 @@ attributes:
membership:
- community.docker.docker
- docker
'''
"""
CONN = r"""
options: {}
@@ -77,7 +77,7 @@ attributes:
"""
# Should be used together with the standard fragment and the FACTS fragment
FACTS_MODULE = r'''
FACTS_MODULE = r"""
options: {}
attributes:
check_mode:
@@ -90,7 +90,7 @@ attributes:
- This action does not modify state.
facts:
support: full
'''
"""
FILES = r"""
options: {}
+2 -2
View File
@@ -74,8 +74,8 @@ notes:
"""
# The following needs to be kept in sync with the compose_v2 module utils
MINIMUM_VERSION = r'''
MINIMUM_VERSION = r"""
options: {}
requirements:
- "Docker CLI with Docker compose plugin 2.18.0 or later"
'''
"""
+10 -10
View File
@@ -123,7 +123,7 @@ notes:
# For plugins: allow to define common options with Ansible variables
VAR_NAMES = r'''
VAR_NAMES = r"""
options:
docker_host:
vars:
@@ -154,11 +154,11 @@ options:
validate_certs:
vars:
- name: ansible_docker_validate_certs
'''
"""
# Additional, more specific stuff for minimal Docker SDK for Python version < 2.0
DOCKER_PY_1_DOCUMENTATION = r'''
DOCKER_PY_1_DOCUMENTATION = r"""
options: {}
notes:
- This module uses the L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) to
@@ -170,12 +170,12 @@ requirements:
modules should *not* be installed at the same time. Also note that when both modules are
installed and one of them is uninstalled, the other might no longer function and a reinstall
of it is required."
'''
"""
# Additional, more specific stuff for minimal Docker SDK for Python version >= 2.0.
# Note that Docker SDK for Python >= 2.0 requires Python 2.7 or newer.
DOCKER_PY_2_DOCUMENTATION = r'''
DOCKER_PY_2_DOCUMENTATION = r"""
options: {}
notes:
- This module uses the L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) to
@@ -186,10 +186,10 @@ requirements:
Python module has been superseded by L(docker,https://pypi.org/project/docker/)
(see L(here,https://github.com/docker/docker-py/issues/1310) for details).
This module does *not* work with docker-py."
'''
"""
# Docker doc fragment when using the vendored API access code
API_DOCUMENTATION = r'''
API_DOCUMENTATION = r"""
options:
docker_host:
description:
@@ -302,10 +302,10 @@ requirements:
- pywin32 (when using named pipes on Windows 32)
- paramiko (when using SSH with O(use_ssh_client=false))
- pyOpenSSL (when using TLS)
'''
"""
# Docker doc fragment when using the Docker CLI
CLI_DOCUMENTATION = r'''
CLI_DOCUMENTATION = r"""
options:
docker_cli:
description:
@@ -403,4 +403,4 @@ notes:
U(https://docs.docker.com/machine/reference/env/) for more details.
- This module does B(not) use the L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) to
communicate with the Docker daemon. It directly calls the Docker CLI program.
'''
"""