From: Stefan Junker Date: Wed, 2 Mar 2016 11:53:02 +0000 (+0100) Subject: plugins/loopback: return empty result X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=e282f6939d8cb5dff2ede95cd1fc849b9d55c03e;p=cni.git plugins/loopback: return empty result This is needed to conform to the specification and allow successful unmarshalling in the invoker. --- diff --git a/plugins/main/loopback/loopback.go b/plugins/main/loopback/loopback.go index d0e9646..eb02eb1 100644 --- a/plugins/main/loopback/loopback.go +++ b/plugins/main/loopback/loopback.go @@ -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 {