Skip to content

Commit 34e1b61

Browse files
committed
use const
1 parent 12bd7b2 commit 34e1b61

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

v1/providers/shadeform/instancetype.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
const (
1919
UsdCurrentCode = "USD"
2020
AllRegions = "all"
21-
excessSupply = "excesssupply"
2221
)
2322

2423
// TODO: We need to apply a filter to specifically limit the integration and api to selected clouds and shade instance types
@@ -239,7 +238,7 @@ func shadeformCloud(cloud openapi.Cloud) string {
239238
// Shadeform will return the cloud as "excesssupply" if the instance type is retrieved
240239
// from cloud partners and not a direct cloud provider. In this case, we should just return
241240
// the Shadeform Cloud Provider ID.
242-
if strings.EqualFold(shadeformCloud, excessSupply) {
241+
if strings.EqualFold(shadeformCloud, string(openapi.EXCESSSUPPLY)) {
243242
return CloudProviderID
244243
}
245244

0 commit comments

Comments
 (0)