diff --git a/src/runtime/virtcontainers/fc.go b/src/runtime/virtcontainers/fc.go index 580a2f563..e2e678597 100644 --- a/src/runtime/virtcontainers/fc.go +++ b/src/runtime/virtcontainers/fc.go @@ -1165,7 +1165,11 @@ func (fc *firecracker) getThreadIDs(ctx context.Context) (vcpuThreadIDs, error) if len(cpus) != 2 { return vcpuInfo, errors.Errorf("Invalid fc thread info: %v", comm) } - cpuID, err := strconv.ParseInt(cpus[1], 10, 32) + + //Remove the leading whitespace + cpuIdStr := strings.TrimSpace(cpus[1]) + + cpuID, err := strconv.ParseInt(cpuIdStr, 10, 32) if err != nil { return vcpuInfo, errors.Wrapf(err, "Invalid fc thread info: %v", comm) }