From bf797049f697dde50949fdb1323546af6d1b6131 Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Mon, 17 Jul 2023 10:58:17 +0200 Subject: [PATCH] Update method formatting product names --- constants.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/constants.go b/constants.go index 0d58b6b..6452a58 100644 --- a/constants.go +++ b/constants.go @@ -154,14 +154,30 @@ func VendorFromString(s string) string { } // Return a normalized product name given a product name +// +// nolint:gocyclo // This list is expected to be long. func FormatProductName(s string) string { switch s { case "PowerEdge R6515": return "r6515" case "PowerEdge R640": return "r640" + case "PowerEdge R6415": + return "r6415" + case "PowerEdge R750": + return "r750" case "PowerEdge C6320": return "c6320" + case "SYS-5019C-MR-PH004", "SYS-5019C-MR": + return "x11scm-f" + case "SYS-5039MS-H12TRF": + return "x11sse-f" + case "SYS-510T-MR-EI018", "SYS-510T-MR1-EI018": + return "x12sth-sys" + case "SSG-6029P-E1CR12L-PH004": + return "x11dph-t" + case "SSG-110P-NTR10", "SSG-110P-NTR10-EI018": + return "x12spo-ntf" default: return s }