浏览代码

finish merge

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