Skip to content

Commit 7da73ec

Browse files
kj-netappreederc42
authored andcommitted
Fixes panic in NVME from missing field
1 parent ff3d7cf commit 7da73ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/nvme/nvme_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func (s *NVMeSubsystem) GetNVMeDeviceAt(ctx context.Context, nsUUID string) (NVM
327327
fileContent := strings.TrimSpace(string(fileBytes))
328328

329329
if nsUUID == fileContent {
330-
return &NVMeDevice{UUID: nsUUID, Device: "/dev/" + pathContent.Name()}, nil
330+
return &NVMeDevice{UUID: nsUUID, Device: "/dev/" + pathContent.Name(), command: s.command}, nil
331331
}
332332
}
333333
}

0 commit comments

Comments
 (0)