Jelajahi Sumber

fix n2 prices (#679)

Ajay Tripathy 5 tahun lalu
induk
melakukan
36025486da
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      pkg/cloud/gcpprovider.go

+ 1 - 1
pkg/cloud/gcpprovider.go

@@ -686,7 +686,7 @@ func (gcp *GCP) parsePage(r io.Reader, inputKeys map[string]Key, pvKeys map[stri
 					instanceType = "custom"
 					instanceType = "custom"
 				}
 				}
 
 
-				if (instanceType == "ram" || instanceType == "cpu") && strings.Contains(strings.ToUpper(product.Description), "N2") {
+				if (instanceType == "ram" || instanceType == "cpu") && strings.Contains(strings.ToUpper(product.Description), "N2") && !strings.Contains(strings.ToUpper(product.Description), "PREMIUM") {
 					if (instanceType == "ram" || instanceType == "cpu") && strings.Contains(strings.ToUpper(product.Description), "N2D AMD") {
 					if (instanceType == "ram" || instanceType == "cpu") && strings.Contains(strings.ToUpper(product.Description), "N2D AMD") {
 						instanceType = "n2dstandard"
 						instanceType = "n2dstandard"
 					} else {
 					} else {