Docker Compose v1 tests: restrict API version to 1.44 if default API version is 1.45+ (#881)

* Restrict API version to 1.44 if default API version is 1.45+.

* Set COMPOSE_API_VERSION if api_version is provided.

* Add changelog.
This commit is contained in:
Felix Fontein
2024-06-14 08:02:12 +02:00
committed by GitHub
parent fd5110c94c
commit 691bc6de72
3 changed files with 10 additions and 1 deletions
+3
View File
@@ -675,6 +675,9 @@ class ContainerManager(DockerBaseClass):
for key, value in client.module.params.items():
setattr(self, key, value)
if self.api_version:
os.environ['COMPOSE_API_VERSION'] = self.api_version
self.check_mode = client.check_mode
if not self.debug: