From 955ea7f6a5fab31628771b5543339b4fcc712c33 Mon Sep 17 00:00:00 2001 From: Ranjith M P <92041707+r1jt@users.noreply.github.com> Date: Wed, 23 Oct 2024 20:50:37 +0530 Subject: [PATCH] Update helm_utils.go Signed-off-by: Ranjith M P <92041707+r1jt@users.noreply.github.com> --- apps/helm_utils.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/helm_utils.go b/apps/helm_utils.go index 962d5a1..b01d007 100644 --- a/apps/helm_utils.go +++ b/apps/helm_utils.go @@ -5,7 +5,6 @@ import ( "fmt" "os/exec" "strings" - "io/ioutil" "github.com/openebs/openebs-e2e/common" "github.com/openebs/openebs-e2e/common/e2e_config" "os" @@ -185,7 +184,7 @@ func GetHelmValues(releaseName, namespace string, filePath string) error { return fmt.Errorf("failed to uninstall release %s with Helm: %v\n%s", releaseName, err, output) } // Write the output to a YAML file. - if err := ioutil.WriteFile(filePath, output, 0644); err != nil { + if err := os.WriteFile(filePath, output, 0644); err != nil { return fmt.Errorf("failed to write output to file %s: %v", filePath, err) } return nil