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
2b83f0a8
Unverified
Commit
2b83f0a8
authored
6 years ago
by
Nick Ethier
Browse files
Options
Download
Email Patches
Plain Diff
client: fix missing driver info init
parent
9573fe9a
Branches unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/node_updater.go
+4
-1
client/node_updater.go
with
4 additions
and
1 deletion
+4
-1
client/node_updater.go
+
4
-
1
View file @
2b83f0a8
...
...
@@ -43,7 +43,10 @@ SEND_BATCH:
var
driverChanged
bool
c
.
batchNodeUpdates
.
batchDriverUpdates
(
func
(
driver
string
,
info
*
structs
.
DriverInfo
)
{
if
c
.
updateNodeFromDriverLocked
(
driver
,
info
)
{
c
.
config
.
Node
.
Drivers
[
driver
]
.
UpdateTime
=
time
.
Now
()
c
.
config
.
Node
.
Drivers
[
driver
]
=
info
if
c
.
config
.
Node
.
Drivers
[
driver
]
.
UpdateTime
.
IsZero
()
{
c
.
config
.
Node
.
Drivers
[
driver
]
.
UpdateTime
=
time
.
Now
()
}
driverChanged
=
true
}
})
...
...
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