We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f719f96 commit a76c4fbCopy full SHA for a76c4fb
1 file changed
v2/utils.go
@@ -227,7 +227,7 @@ func ToResources(spec *specs.LinuxResources) *Resources {
227
if i := spec.Rdma; i != nil {
228
resources.RDMA = &RDMA{}
229
for device, value := range spec.Rdma {
230
- if device != "" && (value.HcaHandles != nil || value.HcaObjects != nil) {
+ if device != "" && (value.HcaHandles != nil && value.HcaObjects != nil) {
231
resources.RDMA.Limit = append(resources.RDMA.Limit, RDMAEntry{
232
Device: device,
233
HcaHandles: *value.HcaHandles,
0 commit comments