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:
Stefan Junker 2016-03-02 12:53:02 +01:00
parent c44bc010ab
commit e282f6939d

View File

@ -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 {