Răsfoiți Sursa

fix n2 prices (#679)

Ajay Tripathy 5 ani în urmă
părinte
comite
36025486da
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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"
 				}
 
-				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") {
 						instanceType = "n2dstandard"
 					} else {