diff --git a/cmd/egress-cni-plugin/main.go b/cmd/egress-cni-plugin/main.go index 91135429dc..a1a85fc2cb 100644 --- a/cmd/egress-cni-plugin/main.go +++ b/cmd/egress-cni-plugin/main.go @@ -108,7 +108,7 @@ func add(args *skel.CmdArgs, ec *egressContext) (err error) { return err } -func cmdDel(args *skel.CmdArgs) (err error) { +func cmdDel(args *skel.CmdArgs) error { ec := NewEgressDelContext(args.Netns) return del(args, &ec) } @@ -119,11 +119,6 @@ func del(args *skel.CmdArgs, ec *egressContext) (err error) { return fmt.Errorf("failed to parse config: %v", err) } ec.Log.Debugf("Received a Del request: nsPath: %s conf=%+v", ec.NsPath, *ec.NetConf) - // uncomment following lines to debug detailed inputs - //stdin := args.StdinData - //args.StdinData = nil - //ec.Log.Debugf("args: %+v, stdinData: %+v", *args, string(stdin)) - //args.StdinData = stdin // We only need this plugin to kick in if egress is enabled if ec.NetConf.Enabled != "true" {