mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
[bugfix] Process error type instead of nvml.Return in internal/platform-support/dgpu
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
This commit is contained in:
parent
c5c124b882
commit
d8ccd50349
@ -145,9 +145,9 @@ type toRequiredMigInfo struct {
|
||||
}
|
||||
|
||||
func (d *toRequiredMigInfo) getPlacementInfo() (int, int, int, error) {
|
||||
gpu, ret := d.parent.GetMinorNumber()
|
||||
if ret != nvml.SUCCESS {
|
||||
return 0, 0, 0, fmt.Errorf("error getting GPU minor: %v", ret)
|
||||
gpu, err := d.parent.GetMinorNumber()
|
||||
if err != nil {
|
||||
return 0, 0, 0, fmt.Errorf("error getting GPU minor: %w", err)
|
||||
}
|
||||
|
||||
gi, ret := d.GetGpuInstanceId()
|
||||
|
Loading…
Reference in New Issue
Block a user