We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12bd7b2 commit 34e1b61Copy full SHA for 34e1b61
1 file changed
v1/providers/shadeform/instancetype.go
@@ -18,7 +18,6 @@ import (
18
const (
19
UsdCurrentCode = "USD"
20
AllRegions = "all"
21
- excessSupply = "excesssupply"
22
)
23
24
// 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 {
239
238
// Shadeform will return the cloud as "excesssupply" if the instance type is retrieved
240
// from cloud partners and not a direct cloud provider. In this case, we should just return
241
// the Shadeform Cloud Provider ID.
242
- if strings.EqualFold(shadeformCloud, excessSupply) {
+ if strings.EqualFold(shadeformCloud, string(openapi.EXCESSSUPPLY)) {
243
return CloudProviderID
244
}
245
0 commit comments