mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +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)
|
topo, err := topology.Discover(machineInfo)
|
||||||
if err != nil {
|
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)
|
reservedCPUSet, err := cpuset.Parse(cpus)
|
||||||
if err != nil {
|
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()
|
allCPUSet := topo.CPUDetails.CPUs()
|
||||||
if !reservedCPUSet.IsSubsetOf(allCPUSet) {
|
if !reservedCPUSet.IsSubsetOf(allCPUSet) {
|
||||||
|
Loading…
Reference in New Issue
Block a user