Skip to content

Commit

Permalink
Skip injection of the IMEX channel device node if no cliqueID
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Klues <[email protected]>
  • Loading branch information
klueska committed Jan 28, 2025
1 parent a9ea832 commit 970fb95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/nvidia-dra-imex-plugin/imex.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ func (m *ImexManager) NewSettings(domain string) *ImexDaemonSettings {
}

func (m *ImexManager) GetImexChannelContainerEdits(devRoot string, info *ImexChannelInfo) *cdiapi.ContainerEdits {
if m.cliqueID == "" {
return nil

Check failure on line 132 in cmd/nvidia-dra-imex-plugin/imex.go

View workflow job for this annotation

GitHub Actions / check

File is not properly formatted (gofmt)
}

channelPath := fmt.Sprintf("/dev/nvidia-caps-imex-channels/channel%d", info.Channel)

return &cdiapi.ContainerEdits{
Expand Down

0 comments on commit 970fb95

Please sign in to comment.