Merge pull request #5092 from ethan-daocloud/patch-2

cleanup: fix words in logging message
pull/5094/head
Thomas Strömberg 2019-08-15 09:13:06 -07:00 committed by GitHub
commit 91a76a8090
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