provider.options can be an array

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2025-05-12 11:07:41 +02:00 committed by Guillaume Lours
parent 91a0aa0265
commit 22f8a7009f
3 changed files with 6 additions and 4 deletions

View file

@ -161,7 +161,9 @@ func (s *composeService) setupPluginCommand(ctx context.Context, project *types.
args := []string{"compose", "--project-name", project.Name, command}
for k, v := range provider.Options {
args = append(args, fmt.Sprintf("--%s=%s", k, v))
for _, value := range v {
args = append(args, fmt.Sprintf("--%s=%s", k, value))
}
}
args = append(args, service.Name)