Skip to content

Commit

Permalink
Merge pull request #61 from adrianchiris/dont-fail-if-state-not-found
Browse files Browse the repository at this point in the history
dont fail if cache entry not found
  • Loading branch information
SchSeba authored May 29, 2024
2 parents a563b2f + c311ce9 commit 2a0db0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/rdma/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ func (plugin *rdmaCniPlugin) CmdDel(args *skel.CmdArgs) error {
pRef := plugin.stateCache.GetStateRef(conf.Name, args.ContainerID, args.IfName)
err = plugin.stateCache.Load(pRef, &rdmaState)
if err != nil {
return err
log.Warn().Msgf("failed to load cache entry(%q). it may have been deleted by a previous CMD_DEL call. %v", pRef, err)
return nil
}

// Move RDMA device to default namespace
Expand Down

0 comments on commit 2a0db0d

Please sign in to comment.