mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-25 12:17:52 +00:00
error string should not be capitalized
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user