commit
b199dc3ffe
28
Godeps/Godeps.json
generated
28
Godeps/Godeps.json
generated
@ -81,38 +81,38 @@
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/containernetworking/cni/libcni",
|
||||
"Comment": "v0.7.0-rc2",
|
||||
"Rev": "fbb95fff8a5239a4295c991efa8a397d43118f7e"
|
||||
"Comment": "v0.7.0",
|
||||
"Rev": "7d76556571b6cf1ab90d7026a73092ac8d5e0c23"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/containernetworking/cni/pkg/invoke",
|
||||
"Comment": "v0.7.0-rc2",
|
||||
"Rev": "fbb95fff8a5239a4295c991efa8a397d43118f7e"
|
||||
"Comment": "v0.7.0",
|
||||
"Rev": "7d76556571b6cf1ab90d7026a73092ac8d5e0c23"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/containernetworking/cni/pkg/skel",
|
||||
"Comment": "v0.7.0-rc2",
|
||||
"Rev": "fbb95fff8a5239a4295c991efa8a397d43118f7e"
|
||||
"Comment": "v0.7.0",
|
||||
"Rev": "7d76556571b6cf1ab90d7026a73092ac8d5e0c23"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/containernetworking/cni/pkg/types",
|
||||
"Comment": "v0.7.0-rc2",
|
||||
"Rev": "fbb95fff8a5239a4295c991efa8a397d43118f7e"
|
||||
"Comment": "v0.7.0",
|
||||
"Rev": "7d76556571b6cf1ab90d7026a73092ac8d5e0c23"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/containernetworking/cni/pkg/types/020",
|
||||
"Comment": "v0.7.0-rc2",
|
||||
"Rev": "fbb95fff8a5239a4295c991efa8a397d43118f7e"
|
||||
"Comment": "v0.7.0",
|
||||
"Rev": "7d76556571b6cf1ab90d7026a73092ac8d5e0c23"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/containernetworking/cni/pkg/types/current",
|
||||
"Comment": "v0.7.0-rc2",
|
||||
"Rev": "fbb95fff8a5239a4295c991efa8a397d43118f7e"
|
||||
"Comment": "v0.7.0",
|
||||
"Rev": "7d76556571b6cf1ab90d7026a73092ac8d5e0c23"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/containernetworking/cni/pkg/version",
|
||||
"Comment": "v0.7.0-rc2",
|
||||
"Rev": "fbb95fff8a5239a4295c991efa8a397d43118f7e"
|
||||
"Comment": "v0.7.0",
|
||||
"Rev": "7d76556571b6cf1ab90d7026a73092ac8d5e0c23"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/coreos/go-iptables/iptables",
|
||||
|
4
vendor/github.com/containernetworking/cni/pkg/invoke/raw_exec.go
generated
vendored
4
vendor/github.com/containernetworking/cni/pkg/invoke/raw_exec.go
generated
vendored
@ -46,7 +46,9 @@ func (e *RawExec) ExecPlugin(ctx context.Context, pluginPath string, stdinData [
|
||||
func pluginErr(err error, output []byte) error {
|
||||
if _, ok := err.(*exec.ExitError); ok {
|
||||
emsg := types.Error{}
|
||||
if perr := json.Unmarshal(output, &emsg); perr != nil {
|
||||
if len(output) == 0 {
|
||||
emsg.Msg = "netplugin failed with no error message"
|
||||
} else if perr := json.Unmarshal(output, &emsg); perr != nil {
|
||||
emsg.Msg = fmt.Sprintf("netplugin failed but error parsing its diagnostic message %q: %v", string(output), perr)
|
||||
}
|
||||
return &emsg
|
||||
|
Loading…
x
Reference in New Issue
Block a user