Przeglądaj źródła

Merge branch 'master' of github.com:kubecost/cost-model into AjayTripathy-PV

AjayTripathy 6 lat temu
rodzic
commit
fda5f2c6cb
1 zmienionych plików z 3 dodań i 0 usunięć
  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
 	}