Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathsreekanth authored and falfaroc committed Feb 25, 2025
1 parent dd18232 commit 3cc5016
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ func initMockCache() {
initNode1 := iscsidir1PortKey1 + ":" + iqnNode1
initNode1List = append(initNode1List, iqnNode1)
addInitiator(initNode1, iqnNode1, "GigE", []string{iscsidir1PortKey1}, "") // #nosec G20
addHost("CSI-Test-Node-1", "iSCSI", initNode1List) // #nosec G20
addHost("CSI-Test-Node-1-ISCSI", "iSCSI", initNode1List) // #nosec G20
initNode2List := make([]string, 0)
iqn1Node2 := "iqn.1993-08.org.centos:01:5ae577b352a1"
iqn2Node2 := "iqn.1993-08.org.centos:01:5ae577b352a2"
Expand All @@ -580,7 +580,7 @@ func initMockCache() {
initNode2List = append(initNode2List, iqn2Node2)
addInitiator(init1Node2, iqn1Node2, "GigE", []string{iscsidir1PortKey1}, "") // #nosec G20
addInitiator(init2Node2, iqn2Node2, "GigE", []string{iscsidir1PortKey1}, "") // #nosec G20
addHost("CSI-Test-Node-2", "iSCSI", initNode2List) // #nosec G20
addHost("CSI-Test-Node-2-ISCSI", "iSCSI", initNode2List) // #nosec G20
addMaskingView("CSI-Test-MV-1", "CSI-Test-SG-1", "CSI-Test-Node-1", "iscsi_ports") // #nosec G20

initNode3List := make([]string, 0)
Expand Down Expand Up @@ -3357,7 +3357,6 @@ func handlePort(w http.ResponseWriter, r *http.Request) {
}
return
}
fmt.Printf("in GetPORT : URL = %+v ---------------- > %+v", r.URL, r.URL.Query())
if Filters.GetNVMePorts {
returnNVMePort(w, dID, pID)
} else {
Expand Down

0 comments on commit 3cc5016

Please sign in to comment.