Sfoglia il codice sorgente

Add currency code to custom pricing setting cache

Niko Kovacevic 6 anni fa
parent
commit
6d1a45c565
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      costmodel/router.go

+ 2 - 2
costmodel/router.go

@@ -336,8 +336,8 @@ func (a *Accesses) CustomPricingHasChanged() bool {
 	// describe parameters by which we determine whether or not custom
 	// pricing settings have changed
 	encodeCustomPricing := func(cp *costAnalyzerCloud.CustomPricing) string {
-		return fmt.Sprintf("%s:%s:%s:%s:%s:%s:%s", cp.CustomPricesEnabled, cp.CPU, cp.SpotCPU,
-			cp.RAM, cp.SpotRAM, cp.GPU, cp.Storage)
+		return fmt.Sprintf("%s:%s:%s:%s:%s:%s:%s:%s", cp.CustomPricesEnabled, cp.CPU, cp.SpotCPU,
+			cp.RAM, cp.SpotRAM, cp.GPU, cp.Storage, cp.CurrencyCode)
 	}
 
 	// compare cached custom pricing parameters with current values