Prechádzať zdrojové kódy

set azure default discount

AjayTripathy 7 rokov pred
rodič
commit
3e6e5617da
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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
 	}