Ineffassign fixes for pkg/volume

Along resolves errors whitelisted in hack/.staticcheck_failures
This commit is contained in:
Alena Prokharchyk
2020-01-30 14:29:56 -08:00
parent a06d16565c
commit 331cd94ccc
8 changed files with 23 additions and 12 deletions

View File

@@ -362,7 +362,7 @@ func (util *ISCSIUtil) AttachDisk(b iscsiDiskMounter) (string, error) {
}
// in case of node failure/restart, explicitly set to manual login so it doesn't hang on boot
out, err = execWithLog(b, "iscsiadm", "-m", "node", "-p", tp, "-T", b.Iqn, "-o", "update", "-n", "node.startup", "-v", "manual")
_, err = execWithLog(b, "iscsiadm", "-m", "node", "-p", tp, "-T", b.Iqn, "-o", "update", "-n", "node.startup", "-v", "manual")
if err != nil {
// don't fail if we can't set startup mode, but log warning so there is a clue
klog.Warningf("Warning: Failed to set iSCSI login mode to manual. Error: %v", err)