Skip to content

Commit 1f09721

Browse files
committed
cdi: add error print for spec write fails
Signed-off-by: Tuomas Katila <[email protected]>
1 parent e474c93 commit 1f09721

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/deviceplugin/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ func (srv *server) Allocate(ctx context.Context, rqt *pluginapi.AllocateRequest)
186186

187187
if names, err := writeCdiSpecToFilesystem(dev.cdiSpec, srv.cdiDir); err == nil {
188188
cresp.CDIDevices = append(cresp.CDIDevices, names...)
189+
} else {
190+
klog.Errorf("CDI spec write failed: %+v", err)
189191
}
190192
}
191193

0 commit comments

Comments
 (0)