Fix for windows too
This commit is contained in:
@ -19,6 +19,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/containernetworking/cni/pkg/invoke"
|
"github.com/containernetworking/cni/pkg/invoke"
|
||||||
@ -69,5 +70,5 @@ func doCmdDel(args *skel.CmdArgs, n *NetConf) error {
|
|||||||
return fmt.Errorf("failed to parse netconf: %v", err)
|
return fmt.Errorf("failed to parse netconf: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return invoke.DelegateDel(nc.Type, netconfBytes, nil)
|
return invoke.DelegateDel(context.TODO(), nc.Type, netconfBytes, nil)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user