Skip to content

Commit 5eb9915

Browse files
authored
Merge pull request #10 from bmc-toolbox/productnames
Update method formatting product names
2 parents 93ff001 + bf79704 commit 5eb9915

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

constants.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,30 @@ func VendorFromString(s string) string {
154154
}
155155

156156
// Return a normalized product name given a product name
157+
//
158+
// nolint:gocyclo // This list is expected to be long.
157159
func FormatProductName(s string) string {
158160
switch s {
159161
case "PowerEdge R6515":
160162
return "r6515"
161163
case "PowerEdge R640":
162164
return "r640"
165+
case "PowerEdge R6415":
166+
return "r6415"
167+
case "PowerEdge R750":
168+
return "r750"
163169
case "PowerEdge C6320":
164170
return "c6320"
171+
case "SYS-5019C-MR-PH004", "SYS-5019C-MR":
172+
return "x11scm-f"
173+
case "SYS-5039MS-H12TRF":
174+
return "x11sse-f"
175+
case "SYS-510T-MR-EI018", "SYS-510T-MR1-EI018":
176+
return "x12sth-sys"
177+
case "SSG-6029P-E1CR12L-PH004":
178+
return "x11dph-t"
179+
case "SSG-110P-NTR10", "SSG-110P-NTR10-EI018":
180+
return "x12spo-ntf"
165181
default:
166182
return s
167183
}

0 commit comments

Comments
 (0)