Kaynağa Gözat

set azure default discount

AjayTripathy 6 yıl önce
ebeveyn
işleme
3e6e5617da
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      cloud/azureprovider.go

+ 3 - 0
cloud/azureprovider.go

@@ -525,6 +525,9 @@ func (az *Azure) UpdateConfig(r io.Reader, updateType string) (*CustomPricing, e
 }
 func (az *Azure) GetConfig() (*CustomPricing, error) {
 	c, err := GetDefaultPricingData("azure.json")
+	if c.Discount == "" {
+		c.Discount = "0%"
+	}
 	if err != nil {
 		return nil, err
 	}