From 5bc7244a2277f7411e42ee41d853569da345ffc4 Mon Sep 17 00:00:00 2001 From: doubletao318 Date: Thu, 19 Nov 2020 01:12:18 -0800 Subject: [PATCH] 2.2.RC2 --- src/connector/iscsi/iscsi_helper.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/connector/iscsi/iscsi_helper.go b/src/connector/iscsi/iscsi_helper.go index 868b3bed..fb3327fe 100644 --- a/src/connector/iscsi/iscsi_helper.go +++ b/src/connector/iscsi/iscsi_helper.go @@ -239,10 +239,8 @@ func tryConnectVolume(connMap map[string]interface{}) (string, error) { return "", err } - allSessions, err := utils.ExecShellCmd("iscsiadm -m session") - if err != nil { - return "", err - } + // must ignore the error + allSessions, _ := utils.ExecShellCmd("iscsiadm -m session") var mPath string var wait sync.WaitGroup