Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
abc19a40
Unverified
Commit
abc19a40
authored
4 years ago
by
Nick Ethier
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #9363 from 42wim/fixcni
cni: use correct interface for netStatus
parents
e5be40b4
19934d35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/allocrunner/networking_cni.go
+3
-1
client/allocrunner/networking_cni.go
with
3 additions
and
1 deletion
+3
-1
client/allocrunner/networking_cni.go
+
3
-
1
View file @
abc19a40
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help