cleanup: fix words in logging message

Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
pull/5092/head
Guangming Wang 2019-08-15 20:53:28 +08:00 committed by GitHub
parent 99f5771f78
commit 84242bf2c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -71,12 +71,12 @@ func getDevicesXML() (string, error) {
for _, device := range unboundNVIDIADevices {
splits := strings.Split(device, ":")
if len(splits) != 3 {
log.Infof("Error while parsing PCI device %q. Not splitable into domain:bus:slot.function.", device)
log.Infof("Error while parsing PCI device %q. Not splittable into domain:bus:slot.function.", device)
continue
}
parts := strings.Split(splits[2], ".")
if len(parts) != 2 {
log.Infof("Error while parsing PCI device %q. Not splitable into domain:bus:slot.function.", device)
log.Infof("Error while parsing PCI device %q. Not splittable into domain:bus:slot.function.", device)
continue
}
pciDevice := PCIDevice{
@ -161,7 +161,7 @@ func getPassthroughableNVIDIADevices() ([]string, error) {
}
}
if len(isolatedNVIDIADevices) == 0 {
return []string{}, fmt.Errorf("some unbound NVIDIA devices were found but they had other devices in their IOMMU group that were bound. See instructoins at https://minikube.sigs.k8s.io/docs/tutorials/nvidia_gpu/")
return []string{}, fmt.Errorf("some unbound NVIDIA devices were found but they had other devices in their IOMMU group that were bound. See instructions at https://minikube.sigs.k8s.io/docs/tutorials/nvidia_gpu/")
}
return isolatedNVIDIADevices, nil