This is an automated email from the ASF dual-hosted git repository.

ccondit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-release.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d7dd6f  [YUNIKORN-2076] Remove deprecared io/ioutil (#159)
9d7dd6f is described below

commit 9d7dd6f34c863996fc9641e249a3ad24009a1303
Author: brandboat <[email protected]>
AuthorDate: Thu Oct 26 10:58:39 2023 -0500

    [YUNIKORN-2076] Remove deprecared io/ioutil (#159)
    
    Closes: #159
    
    Signed-off-by: Craig Condit <[email protected]>
---
 perf-tools/framework/config.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/perf-tools/framework/config.go b/perf-tools/framework/config.go
index fe0f9ab..7109b9c 100644
--- a/perf-tools/framework/config.go
+++ b/perf-tools/framework/config.go
@@ -20,7 +20,7 @@ package framework
 
 import (
        "fmt"
-       "io/ioutil"
+       "os"
 
        apiv1 "k8s.io/api/core/v1"
 
@@ -46,7 +46,7 @@ type CommonConfig struct {
 }
 
 func InitConfig(configFile string) (*Config, error) {
-       yamlContent, err := ioutil.ReadFile(configFile)
+       yamlContent, err := os.ReadFile(configFile)
        if err != nil {
                return nil, fmt.Errorf("Failed to read config file: %s ", 
err.Error())
        }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to