plugins/loopback: return empty result
This is needed to conform to the specification and allow successful unmarshalling in the invoker.
This commit is contained in:
parent
c44bc010ab
commit
e282f6939d
@ -5,6 +5,7 @@ import (
|
||||
|
||||
"github.com/appc/cni/pkg/ns"
|
||||
"github.com/appc/cni/pkg/skel"
|
||||
"github.com/appc/cni/pkg/types"
|
||||
"github.com/vishvananda/netlink"
|
||||
)
|
||||
|
||||
@ -27,7 +28,8 @@ func cmdAdd(args *skel.CmdArgs) error {
|
||||
return err // not tested
|
||||
}
|
||||
|
||||
return nil
|
||||
result := types.Result{}
|
||||
return result.Print()
|
||||
}
|
||||
|
||||
func cmdDel(args *skel.CmdArgs) error {
|
||||
|
Loading…
x
Reference in New Issue
Block a user