We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34e1b61 commit 89a3852Copy full SHA for 89a3852
1 file changed
v1/providers/shadeform/instancetype.go
@@ -233,14 +233,12 @@ func shadeformGPUTypeToBrevGPUName(gpuType string) string {
233
}
234
235
func shadeformCloud(cloud openapi.Cloud) string {
236
- shadeformCloud := string(cloud)
237
-
238
// Shadeform will return the cloud as "excesssupply" if the instance type is retrieved
239
// from cloud partners and not a direct cloud provider. In this case, we should just return
240
// the Shadeform Cloud Provider ID.
241
- if strings.EqualFold(shadeformCloud, string(openapi.EXCESSSUPPLY)) {
+ if cloud == openapi.EXCESSSUPPLY {
242
return CloudProviderID
243
244
245
- return shadeformCloud
+ return string(cloud)
246
0 commit comments