Kaynağa Gözat

default to USD if no currencyCode supplied

Calvin Wang 6 yıl önce
ebeveyn
işleme
ed9ab6748b
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      pkg/cloud/gcpprovider.go

+ 3 - 0
pkg/cloud/gcpprovider.go

@@ -166,6 +166,9 @@ func (gcp *GCP) GetConfig() (*CustomPricing, error) {
 	if c.NegotiatedDiscount == "" {
 		c.NegotiatedDiscount = "0%"
 	}
+	if c.CurrencyCode == "" {
+		c.CurrencyCode = "USD"
+	}
 	return c, nil
 }