Jelajahi Sumber

Merge pull request #250 from kubecost/AjayTripathy-fix-n2price

fix indent
Ajay Tripathy 6 tahun lalu
induk
melakukan
f6e5cb2264
1 mengubah file dengan 4 tambahan dan 5 penghapusan
  1. 4 5
      cloud/gcpprovider.go

+ 4 - 5
cloud/gcpprovider.go

@@ -433,11 +433,10 @@ func (gcp *GCP) parsePage(r io.Reader, inputKeys map[string]Key, pvKeys map[stri
 				if (instanceType == "ram" || instanceType == "cpu") && strings.Contains(strings.ToUpper(product.Description), "CUSTOM") {
 				if (instanceType == "ram" || instanceType == "cpu") && strings.Contains(strings.ToUpper(product.Description), "CUSTOM") {
 					instanceType = "custom"
 					instanceType = "custom"
 				}
 				}
-				/*
-					if (instanceType == "ram" || instanceType == "cpu") && strings.Contains(strings.ToUpper(product.Description), "N2") {
-						instanceType = "n2standard"
-					}
-				*/
+
+				if (instanceType == "ram" || instanceType == "cpu") && strings.Contains(strings.ToUpper(product.Description), "N2") {
+					instanceType = "n2standard"
+				}
 
 
 				/*
 				/*
 					var partialCPU float64
 					var partialCPU float64