Skip to content

Commit

Permalink
Fix: skip check the others runtime type (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethfoo authored Feb 23, 2024
1 parent 8d3e229 commit ab29042
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/discovery/kubernetes/runtime/cri.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,11 @@ func (c *ContainerD) GetRootfsPath(ctx context.Context, containerId string, cont
if err != nil {
return nil, err
}
} else if runtime == string(RuncRuntimeType) {
} else {
prefix, err = c.getRuncRuntimeRootfsPath(infoMap, containerId)
if err != nil {
return nil, err
}
} else {
return nil, errors.Errorf("Unknown runtime type from container(id: %s) status", containerId)
}

var rootfsPaths []string
Expand Down

0 comments on commit ab29042

Please sign in to comment.