Skip to content

Commit 5d11023

Browse files
authored
Merge pull request #779 from NVIDIA/panic-in-node-status-exporter
Fix bug in validator/metrics.go for driver validation
2 parents de55fb7 + 5b31c25 commit 5d11023

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

validator/metrics.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ func (nm *NodeMetrics) watchDevicePluginValidation() {
228228
}
229229

230230
func (nm *NodeMetrics) watchDriverValidation() {
231-
driver := &Driver{}
231+
driver := &Driver{
232+
ctx: nm.ctx,
233+
}
232234

233235
for {
234236
_, err := driver.runValidation(true)

0 commit comments

Comments
 (0)