mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
error string should not be capitalized
This commit is contained in:
parent
3e71ecc6b3
commit
747c6f20dc
@ -500,11 +500,11 @@ func getReservedCPUs(machineInfo *cadvisorapi.MachineInfo, cpus string) (cpuset.
|
||||
|
||||
topo, err := topology.Discover(machineInfo)
|
||||
if err != nil {
|
||||
return emptyCPUSet, fmt.Errorf("Unable to discover CPU topology info: %s", err)
|
||||
return emptyCPUSet, fmt.Errorf("unable to discover CPU topology info: %s", err)
|
||||
}
|
||||
reservedCPUSet, err := cpuset.Parse(cpus)
|
||||
if err != nil {
|
||||
return emptyCPUSet, fmt.Errorf("Unable to parse reserved-cpus list: %s", err)
|
||||
return emptyCPUSet, fmt.Errorf("unable to parse reserved-cpus list: %s", err)
|
||||
}
|
||||
allCPUSet := topo.CPUDetails.CPUs()
|
||||
if !reservedCPUSet.IsSubsetOf(allCPUSet) {
|
||||
|
Loading…
Reference in New Issue
Block a user