Merge pull request #9363 from 42wim/fixcni
cni: use correct interface for netStatus
This commit is contained in:
commit
b84273fd93
|
@ -112,7 +112,9 @@ func (c *cniNetworkConfigurator) Setup(ctx context.Context, alloc *structs.Alloc
|
|||
if len(res.Interfaces) > 0 {
|
||||
iface, name := func(r *cni.CNIResult) (*cni.Config, string) {
|
||||
for i := range r.Interfaces {
|
||||
return r.Interfaces[i], i
|
||||
if r.Interfaces[i].Sandbox != "" {
|
||||
return r.Interfaces[i], i
|
||||
}
|
||||
}
|
||||
return nil, ""
|
||||
}(res)
|
||||
|
|
Loading…
Reference in New Issue