From a6d91b029ae8c0b8ccf7bb391c8ac304fe1e9368 Mon Sep 17 00:00:00 2001 From: Tiago Queiroz Date: Tue, 18 Jun 2024 11:36:57 -0400 Subject: [PATCH] Update internal/pkg/agent/cmd/container.go Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com> --- internal/pkg/agent/cmd/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/agent/cmd/container.go b/internal/pkg/agent/cmd/container.go index 24c553b2af5..63f02c41255 100644 --- a/internal/pkg/agent/cmd/container.go +++ b/internal/pkg/agent/cmd/container.go @@ -781,7 +781,7 @@ func setPaths(statePath, configPath, logsPath, socketPath string, writePaths boo if configPath == "" { configPath = statePath } - if _, err := os.Stat(configPath); os.IsNotExist(err) { + if _, err := os.Stat(configPath); errors.Is(err, fs.ErrNotExist) { if err := os.MkdirAll(configPath, 0755); err != nil { return fmt.Errorf("cannot create folders for config path '%s': %w", configPath, err) }