Explorar o código

Adding a log when public price is not found
Signed-off-by: Sachin Kumar <sachin@rafay.co>

Sachin Kumar %!s(int64=2) %!d(string=hai) anos
pai
achega
361c02e05b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      pkg/cloud/aws/provider.go

+ 1 - 0
pkg/cloud/aws/provider.go

@@ -1336,6 +1336,7 @@ func (aws *AWS) createNode(terms *AWSProductTerms, usageType string, k models.Ke
 			}, meta, nil
 		} else {
 			// return defaults if public pricing not found
+			log.DedupedWarningf(5, "Could not find Node %s's public pricing info", k.ID())
 			return &models.Node{
 				VCPU:         terms.VCpu,
 				VCPUCost:     aws.BaseSpotCPUPrice,