Skip to content

Commit 870d59e

Browse files
committed
update SKU regex to accommodate new SKUs
Signed-off-by: Jack Francis <[email protected]>
1 parent 35b318d commit 870d59e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vmsize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
// fetched using the ResourceSKU API, are not included here. They can be found in sku.go.
1313

1414
var skuSizeScheme = regexp.MustCompile(
15-
`^([A-Z])([A-Z]?)([0-9]+)-?((?:[0-9]+)?)((?:[abcdilmtspPr]+|C+|NP)?)_?(?:([A-Z][0-9]+)_?)?(_cc_)?((?:[vV][1-9])?)?(_Promo)?$`,
15+
`^([A-Z])([A-Z]?)([A-Z]?)([0-9]+)-?((?:[0-9]+)?)((?:[abcdeilmtspPr]+|C+|NP)?)_?(?:([A-Z][0-9]+)_?)?(_cc_)?(_[0-9]+_)?(_MI300X_)?(_H100_)?((?:[vV][1-9])?)?(_Promo)?$`,
1616
)
1717

1818
// unParsableVMSizes map holds vmSize strings that cannot be easily parsed with skuSizeScheme.

0 commit comments

Comments
 (0)