Unverified Commit abc19a40 authored by Nick Ethier's avatar Nick Ethier Committed by GitHub
Browse files

Merge pull request #9363 from 42wim/fixcni

cni: use correct interface for netStatus
parents e5be40b4 19934d35
Showing with 3 additions and 1 deletion
+3 -1
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment