mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
gpu: fix typo in implmentation of preferredAllocator interface
Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
This commit is contained in:
parent
45ad6b3ccc
commit
7eeaddc563
@ -208,7 +208,7 @@ func (dp *devicePlugin) GetPreferredAllocation(rqt *pluginapi.PreferredAllocatio
|
|||||||
if req.AllocationSize > int32(len(req.AvailableDeviceIDs)) {
|
if req.AllocationSize > int32(len(req.AvailableDeviceIDs)) {
|
||||||
klog.V(3).Info("req.AllocationSize must be not greater than len(req.AvailableDeviceIDs).")
|
klog.V(3).Info("req.AllocationSize must be not greater than len(req.AvailableDeviceIDs).")
|
||||||
|
|
||||||
var err = errors.Errorf("AllocationSize (%d) is greater then the number of available device IDs (%d)", req.AllocationSize, len(req.AvailableDeviceIDs))
|
var err = errors.Errorf("AllocationSize (%d) is greater than the number of available device IDs (%d)", req.AllocationSize, len(req.AvailableDeviceIDs))
|
||||||
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user