Skip to content

Commit

Permalink
fix(cnivpc): return error when add pod network record failed
Browse files Browse the repository at this point in the history
  • Loading branch information
fioncat committed Jul 31, 2024
1 parent fc4bb78 commit ed31381
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/cnivpc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ func cmdAdd(args *skel.CmdArgs) error {
err = addPodNetworkRecord(podName, podNS, sandBoxId, pNet)
if err != nil {
ulog.Warnf("Record pod network info for %s/%s, sandbox: %s, error: %v", podName, podNS, sandBoxId, err)
return fmt.Errorf("failed to record pod network: %v", err)
}
// Fill result routes
ulog.Infof("[Result]: %+v", result)
Expand Down

0 comments on commit ed31381

Please sign in to comment.