mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
init struct with explicit field names to avoid formatting warning
This commit is contained in:
parent
d4d77a71e4
commit
390d8583e9
@ -112,7 +112,10 @@ func discoverFPGAs(sysfsDir string, devfsDir string) (map[string]map[string]devi
|
|||||||
if _, ok := result[afuID]; !ok {
|
if _, ok := result[afuID]; !ok {
|
||||||
result[afuID] = make(map[string]deviceplugin.DeviceInfo)
|
result[afuID] = make(map[string]deviceplugin.DeviceInfo)
|
||||||
}
|
}
|
||||||
result[afuID][fname] = deviceplugin.DeviceInfo{pluginapi.Healthy, devNodes}
|
result[afuID][fname] = deviceplugin.DeviceInfo{
|
||||||
|
State: pluginapi.Healthy,
|
||||||
|
Nodes: devNodes,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user