Explorar el Código

Add currency code to custom pricing setting cache

Niko Kovacevic hace 6 años
padre
commit
6d1a45c565
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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
 	// describe parameters by which we determine whether or not custom
 	// pricing settings have changed
 	// pricing settings have changed
 	encodeCustomPricing := func(cp *costAnalyzerCloud.CustomPricing) string {
 	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
 	// compare cached custom pricing parameters with current values