From 63e0b63ab8db6a3b04e12be877c2db3a9d256086 Mon Sep 17 00:00:00 2001 From: Kishen V Date: Mon, 24 Jul 2023 18:21:59 +0530 Subject: [PATCH] Enable setting of vendor and related information for all Power versions --- cpu/cpu_linux.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpu/cpu_linux.go b/cpu/cpu_linux.go index 1b64241ce..b5a20e366 100644 --- a/cpu/cpu_linux.go +++ b/cpu/cpu_linux.go @@ -259,8 +259,7 @@ func InfoWithContext(ctx context.Context) ([]InfoStat, error) { } case "Model Name", "model name", "cpu": c.ModelName = value - if strings.Contains(value, "POWER8") || - strings.Contains(value, "POWER7") { + if strings.Contains(value, "POWER") { c.Model = strings.Split(value, " ")[0] c.Family = "POWER" c.VendorID = "IBM"