diff --git a/iscsi/multipath.go b/iscsi/multipath.go index 4555ffd..54db912 100644 --- a/iscsi/multipath.go +++ b/iscsi/multipath.go @@ -36,7 +36,7 @@ func ExecWithTimeout(command string, args []string, timeout time.Duration) ([]by if err != nil { var ee *exec.ExitError - if ok := errors.Is(err, ee); ok { + if ok := errors.As(err, &ee); ok { klog.V(2).Infof("Non-zero exit code: %s\n", err) err = fmt.Errorf("%s", ee.Stderr) }