From de57f3127c1a1b1a9f4a755c79c9165e16436bc0 Mon Sep 17 00:00:00 2001 From: Amund Tenstad Date: Mon, 3 May 2021 16:17:26 +0200 Subject: [PATCH] Bugfix --- internal/provider/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 127b481..50e33e9 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -203,7 +203,7 @@ func (c *apiClient) fileExistsSudo(d *schema.ResourceData) (bool, error) { cmd := fmt.Sprintf("test ! -f %s", path) err = session2.Run(cmd) - return err == nil, err + return err != nil, err } return true, nil