Improve docs sharing for docker_compose_v2* modules; fix examples and return docs for docker_compose_v2_pull (#761)

* Move more common documentation to docs fragment.

* Fix examples and return values for docker_compose_v2_pull.

* Remove ignore.
This commit is contained in:
Felix Fontein
2024-01-17 07:53:44 +01:00
committed by GitHub
parent 22d956efa8
commit 6082efc855
5 changed files with 29 additions and 251 deletions
+4 -1
View File
@@ -166,6 +166,9 @@ _RE_SKIPPED_EVENT = re.compile(
r'$'
)
# The following needs to be kept in sync with the MINIMUM_VERSION compose_v2 docs fragment
MINIMUM_COMPOSE_VERSION = '2.18.0'
def _extract_event(line):
match = _RE_RESOURCE_EVENT.match(line)
@@ -410,7 +413,7 @@ def combine_text_output(*outputs):
class BaseComposeManager(DockerBaseClass):
def __init__(self, client, min_version='2.18.0'):
def __init__(self, client, min_version=MINIMUM_COMPOSE_VERSION):
super(BaseComposeManager, self).__init__()
self.client = client
self.check_mode = self.client.check_mode