Skip to content

Commit 1b8d41a

Browse files
committed
filter uuid is empty
Signed-off-by: rongfu.leng <lenronfu@gmail.com>
1 parent 588959c commit 1b8d41a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/server/server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ func (ps *PluginServer) parsePodAnnotation(pod *v1.Pod) ([]int32, []string, erro
260260
var IDs []int32
261261
var temps []string
262262
for _, info := range rtInfo {
263+
if info.UUID == "" {
264+
continue
265+
}
263266
d := ps.mgr.GetDeviceByUUID(info.UUID)
264267
if d == nil {
265268
return nil, nil, fmt.Errorf("unknown uuid: %s", info.UUID)

0 commit comments

Comments
 (0)