From 3b5eb29afbe5b6441b69128679b387440942fdf9 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Tue, 15 Sep 2020 11:49:33 +0200 Subject: pkg/host: use 'machine' field as cpu model on IBM/Z Use the field 'machine' in /proc/cpuinfo on IBM/Z to find out the "CPU model". 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 a96ca232f..6cd3ca4f3 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"}, + {"model", "CPU part", "cpu model", "machine"}, {"flags", "features", "Features", "ASEs implemented", "type"}, } for _, possibleNames := range importantKeys { -- cgit mrf-deployment