Skip to content

Commit

Permalink
Merge pull request #568 from containernetworking/jell/vlan-1
Browse files Browse the repository at this point in the history
[main/vlan] Fix error handling for delegate IPAM plugin
  • Loading branch information
dcbw committed Jan 20, 2021
2 parents 48a97a7 + 075c5a0 commit 7dc7a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/main/vlan/vlan.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func cmdAdd(args *skel.CmdArgs) error {
// run the IPAM plugin and get back the config to apply
r, err := ipam.ExecAdd(n.IPAM.Type, args.StdinData)
if err != nil {
return err
return fmt.Errorf("failed to execute IPAM delegate: %v", err)
}

// Invoke ipam del if err to avoid ip leak
Expand Down

0 comments on commit 7dc7a00

Please sign in to comment.