diff --git a/goopicsi.go b/goopicsi.go index 5d5effa1..9a49d726 100644 --- a/goopicsi.go +++ b/goopicsi.go @@ -105,7 +105,7 @@ func ConnectToRemoteAndExpose(addr string) error { } // NVMeControllerConnect Connects to remote NVMf controller -func NVMeControllerConnect(id int64, trAddr string, subnqn string, trSvcID int64, hostnqn string) error { +func NVMeControllerConnect(id string, trAddr string, subnqn string, trSvcID int64, hostnqn string) error { if conn == nil { err := dialConnection() if err != nil { @@ -178,7 +178,7 @@ func NVMeControllerList() ([]NVMeConnection, error) { } // NVMeControllerGet lists the connection to the remote NVMf controller corresponding to the given ID -func NVMeControllerGet(id int64) (string, error) { +func NVMeControllerGet(id string) (string, error) { if conn == nil { err := dialConnection() if err != nil { @@ -200,7 +200,7 @@ func NVMeControllerGet(id int64) (string, error) { } // NVMeControllerDisconnect disconnects remote NVMf controller connection -func NVMeControllerDisconnect(id int64) error { +func NVMeControllerDisconnect(id string) error { if conn == nil { err := dialConnection() if err != nil { diff --git a/goopicsi_test.go b/goopicsi_test.go index 82456d08..9675a5f0 100644 --- a/goopicsi_test.go +++ b/goopicsi_test.go @@ -11,7 +11,7 @@ import ( ) func TestNVMeControllerConnect(t *testing.T) { - err := NVMeControllerConnect(12, "", "", 44565, "") + err := NVMeControllerConnect("12", "", "", 44565, "") if err != nil { log.Println(err) } @@ -27,7 +27,7 @@ func TestNVMeControllerList(t *testing.T) { } func TestNVMeControllerGet(t *testing.T) { - resp, err := NVMeControllerGet(12) + resp, err := NVMeControllerGet("12") if err != nil { log.Println(err) } @@ -35,7 +35,7 @@ func TestNVMeControllerGet(t *testing.T) { } func TestNVMeControllerDisconnect(t *testing.T) { - err := NVMeControllerDisconnect(12) + err := NVMeControllerDisconnect("12") if err != nil { log.Println(err) }