fix: use correct flag for assume_yes

The correct flag is `--y`, not `--yes`.
This commit is contained in:
Jonas Geiler 2025-03-10 21:39:30 +01:00 committed by GitHub
parent fdb97428a3
commit 4155518da4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -162,7 +162,7 @@ options:
version_added: 3.8.0
assume_yes:
description:
- When O(assume_yes=true), pass C(--yes) to assume "yes" as answer to all prompts and run non-interactively.
- When O(assume_yes=true), pass C(--y) to assume "yes" as answer to all prompts and run non-interactively.
- Right now a prompt is asked whenever a non-matching volume should be re-created. O(assume_yes=false)
results in the question being answered by "no", which will simply re-use the existing volume.
- This option is only available on Docker Compose 2.32.0 or newer.
@ -537,7 +537,7 @@ class ServicesManager(BaseComposeManager):
if dry_run:
args.append('--dry-run')
if self.yes:
args.append('--yes')
args.append('--y')
args.append('--')
for service in self.services:
args.append(service)