From 77462c77d9821fb788b55da2dadb7750173e2490 Mon Sep 17 00:00:00 2001 From: Armel Soro Date: Wed, 6 Sep 2023 11:08:24 +0200 Subject: [PATCH] Make sure to run parallel commands part of a composite command in parallel --- pkg/libdevfile/command.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/libdevfile/command.go b/pkg/libdevfile/command.go index 56aa51df3bf..0e4c823192b 100644 --- a/pkg/libdevfile/command.go +++ b/pkg/libdevfile/command.go @@ -33,8 +33,9 @@ func newCommand(devfileObj parser.DevfileObj, devfileCmd v1alpha2.Command) (comm case v1alpha2.CompositeCommandType: if util.SafeGetBool(devfileCmd.Composite.Parallel) { cmd = newParallelCompositeCommand(devfileObj, devfileCmd) + } else { + cmd = newCompositeCommand(devfileObj, devfileCmd) } - cmd = newCompositeCommand(devfileObj, devfileCmd) case v1alpha2.ExecCommandType: cmd = newExecCommand(devfileObj, devfileCmd)