mirror of
https://github.com/rancher/plugins.git
synced 2025-07-10 13:45:24 +00:00
ptp: remove some redundant lines
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
This commit is contained in:
parent
832f2699c2
commit
45fd949465
@ -228,7 +228,7 @@ func cmdAdd(args *skel.CmdArgs) error {
|
|||||||
}
|
}
|
||||||
defer netns.Close()
|
defer netns.Close()
|
||||||
|
|
||||||
hostInterface, containerInterface, err := setupContainerVeth(netns, args.IfName, conf.MTU, result)
|
hostInterface, _, err := setupContainerVeth(netns, args.IfName, conf.MTU, result)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -254,8 +254,6 @@ func cmdAdd(args *skel.CmdArgs) error {
|
|||||||
result.DNS = conf.DNS
|
result.DNS = conf.DNS
|
||||||
}
|
}
|
||||||
|
|
||||||
result.Interfaces = []*current.Interface{hostInterface, containerInterface}
|
|
||||||
|
|
||||||
return types.PrintResult(result, conf.CNIVersion)
|
return types.PrintResult(result, conf.CNIVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user