Skip to content

Commit

Permalink
Fixes the message for NVMeFC for already connected
Browse files Browse the repository at this point in the history
  • Loading branch information
delldubey committed Jun 28, 2024
1 parent 0c79a31 commit 089ac24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gonvme_tcp_fc.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ func (nvme *NVMe) nvmeFCConnect(target NVMeTarget, duplicateConnect bool) error
log.Errorf("\nError during nvme connect %s at %s: %v", target.TargetNqn, target.Portal, err)
return err
}
} else if nvmeConnectResult == 1 && strings.Contains(Output, "already connnected") {
} else if nvmeConnectResult == 1 && strings.Contains(Output, NVMEAlreadyConnected) {
// session already exists
// this is applicable if nvme cli version is 2.0 and above
log.Infof("NVMe connection already exists\n")
Expand Down

0 comments on commit 089ac24

Please sign in to comment.