From 23729d6eae4a7dac986b7fe958ecfbe0b492f52d Mon Sep 17 00:00:00 2001 From: Luca Di Maio Date: Mon, 23 Oct 2023 16:53:12 +0200 Subject: [PATCH] fix: resolve regression in docker auto-installation logic Signed-off-by: Luca Di Maio --- cmd/agent/workspace/up.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/agent/workspace/up.go b/cmd/agent/workspace/up.go index 84dac2dfe..2bb8e5564 100644 --- a/cmd/agent/workspace/up.go +++ b/cmd/agent/workspace/up.go @@ -124,7 +124,7 @@ func initWorkspace(ctx context.Context, cancel context.CancelFunc, workspaceInfo // install docker in background errChan := make(chan error, 1) go func() { - if workspaceInfo.Agent.IsDockerDriver() || workspaceInfo.Agent.Docker.Install == "false" { + if !workspaceInfo.Agent.IsDockerDriver() || workspaceInfo.Agent.Docker.Install == "false" { errChan <- nil } else { errChan <- InstallDocker(logger)