File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
2121 "go.uber.org/zap"
2222 "go.uber.org/zap/zapcore"
2323 "gopkg.in/natefinch/lumberjack.v2"
24- "io/ioutil "
24+ "io"
2525 "log"
2626 "os"
2727 "strings"
@@ -208,7 +208,7 @@ func main() {
208208 // disable the console logging (if anywhere else being done by softlayer or any other pkg)
209209 // presently softlayer logs few warning message, which makes the flexdriver unmarshall failure
210210 log .SetFlags (0 )
211- log .SetOutput (ioutil .Discard )
211+ log .SetOutput (io .Discard )
212212
213213 // Divert all loggers outputs and fmt.printf loggings (this will create issues with flex response)
214214 NullDevice , _ := os .Open (os .DevNull )
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import (
1818 "github.com/IBM/ibmcloud-object-storage-plugin/utils/backend"
1919 "github.com/IBM/ibmcloud-object-storage-plugin/utils/parser"
2020 "go.uber.org/zap"
21- "io/ioutil"
2221 "os"
2322 "os/exec"
2423 "path"
5453 stat = os .Stat
5554 unmount = syscall .Unmount
5655 mount = syscall .Mount
57- writeFile = ioutil .WriteFile
56+ writeFile = os .WriteFile
5857 mkdirAll = os .MkdirAll
5958 removeAll = os .RemoveAll
6059 //hostname, anyerror = os.Hostname()
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
2020 "github.com/IBM/ibmcloud-object-storage-plugin/utils/parser"
2121 "github.com/stretchr/testify/assert"
2222 "go.uber.org/zap"
23- "io/ioutil "
23+ "io"
2424 "os"
2525 "os/exec"
2626 "path"
@@ -116,7 +116,7 @@ func getPlugin() *S3fsPlugin {
116116 ret := exec .Command (os .Args [0 ], cs ... )
117117 ret .Env = []string {"GO_WANT_HELPER_PROCESS=1" }
118118 if commandFailure {
119- ret .Stdout = ioutil .Discard
119+ ret .Stdout = io .Discard
120120 }
121121 return ret
122122 }
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import (
2323 "github.com/IBM/ibmcloud-object-storage-plugin/utils/uuid"
2424 "go.uber.org/zap"
2525 "google.golang.org/grpc"
26- "io/ioutil"
2726 "k8s.io/api/core/v1"
2827 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2928 "k8s.io/client-go/kubernetes"
@@ -133,7 +132,7 @@ type IBMS3fsProvisioner struct {
133132}
134133
135134var _ controller.Provisioner = & IBMS3fsProvisioner {}
136- var writeFile = ioutil .WriteFile
135+ var writeFile = os .WriteFile
137136
138137func UnixConnect (addr string , t time.Duration ) (net.Conn , error ) {
139138 unix_addr , _ := net .ResolveUnixAddr ("unix" , addr )
You can’t perform that action at this time.
0 commit comments