pkg,plugins: update for Result struct Interface index changes
It's a pointer now, so we need to use the helper function to set the field and also test for nil before accessing it.
This commit is contained in:
@ -106,7 +106,10 @@ func cmdAdd(args *skel.CmdArgs) error {
|
||||
}
|
||||
} else {
|
||||
for _, ip := range conf.PrevResult.IPs {
|
||||
intIdx := ip.Interface
|
||||
if ip.Interface == nil {
|
||||
continue
|
||||
}
|
||||
intIdx := *ip.Interface
|
||||
// Every IP is indexed in to the interfaces array, with "-1" standing
|
||||
// for an unknown interface (which we'll assume to be Container-side
|
||||
// Skip all IPs we know belong to an interface with the wrong name.
|
||||
|
Reference in New Issue
Block a user