From ef567bbe632d1becc9de25a8162c9c505cc12cef Mon Sep 17 00:00:00 2001 From: Bharath Sreekanth Date: Tue, 25 Feb 2025 19:32:14 +0000 Subject: [PATCH] fix linting --- mock/mock.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/mock/mock.go b/mock/mock.go index 1b74ca9..c8017df 100644 --- a/mock/mock.go +++ b/mock/mock.go @@ -3398,6 +3398,7 @@ func returnNVMePort(w http.ResponseWriter, dID, pID string) { replacements["__DIRECTOR_ID__"] = dID returnJSONFile(Data.JSONDir, "nvme_port_template.json", w, replacements) } + func returnPortIDList(w http.ResponseWriter, dID string) { replacements := make(map[string]string) replacements["__DIRECTOR_ID__"] = dID @@ -3509,22 +3510,12 @@ func handleHost(w http.ResponseWriter, r *http.Request) { return } // Scan the initiators to see if there are any non iqn ones; then assume - // host type Fibre. - // isFibre := false - // isNVMe := false - // isISCSI := false for _, initiator := range createHostParam.InitiatorIDs { if strings.HasPrefix(initiator, "iqn.") { - //isFibre = true - // initNode := make([]string, 0) - // initNode = append(initNode, "iqn.1993-08.org.centos:01:5ae577b352a7") addHost(createHostParam.HostID, "iSCSI", createHostParam.InitiatorIDs) // #nosec G20 } else if strings.HasPrefix(initiator, "nqn.") { - //isNVMe = true addHost(createHostParam.HostID, "NVMETCP", createHostParam.InitiatorIDs) // #nosec G20 } else { - //isFibre = true - // Might need to add the Port information here addHost(createHostParam.HostID, "Fibre", createHostParam.InitiatorIDs) // #nosec G20 } }