Ajay Tripathy 5 роки тому
батько
коміт
8583d86f9c
1 змінених файлів з 1 додано та 3 видалено
  1. 1 3
      pkg/cloud/awsprovider.go

+ 1 - 3
pkg/cloud/awsprovider.go

@@ -70,10 +70,8 @@ func (aws *AWS) PricingSourceStatus() map[string]*PricingSource {
 	rps.Error = aws.RIPricingStatus
 	rps.Error = aws.RIPricingStatus
 	if rps.Error != "" {
 	if rps.Error != "" {
 		rps.Available = false
 		rps.Available = false
-	} else if len(aws.RIPricingByInstanceID) > 0 {
-		rps.Available = true
 	} else {
 	} else {
-		rps.Error = "No reserved instances detected"
+		rps.Available = true
 	}
 	}
 	sources[ReservedInstancePricingSource] = rps
 	sources[ReservedInstancePricingSource] = rps
 	return sources
 	return sources