From 8247808b71d540d96d8c28ea2854f1c5d1afb8ba Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Wed, 16 Sep 2020 17:31:11 +0200 Subject: pkg/host: use 'processor 0' as cpu model on s390x inside container There is no field 'machine' in /proc/cpuinfo when we run inside a Docker container but there is a 'processor 0' field which provides the same information. Example: processor 0: version = 00, identification = 310C57, machine = 3906 Signed-off-by: Alexander Egorenkov --- pkg/host/machine_info_linux_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/host/machine_info_linux_test.go') diff --git a/pkg/host/machine_info_linux_test.go b/pkg/host/machine_info_linux_test.go index 6cd3ca4f3..e70c62a59 100644 --- a/pkg/host/machine_info_linux_test.go +++ b/pkg/host/machine_info_linux_test.go @@ -48,7 +48,7 @@ func checkCPUInfo(t *testing.T, scanner *bufio.Scanner) { importantKeys := [][]string{ {"vendor", "vendor_id", "CPU implementer"}, - {"model", "CPU part", "cpu model", "machine"}, + {"model", "CPU part", "cpu model", "machine", "processor 0"}, {"flags", "features", "Features", "ASEs implemented", "type"}, } for _, possibleNames := range importantKeys { -- cgit mrf-deployment