Niko Kovacevic 6 ani în urmă
părinte
comite
6cd835b546
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      pkg/costmodel/cluster.go

+ 2 - 2
pkg/costmodel/cluster.go

@@ -520,8 +520,8 @@ func ClusterCostsOverTime(cli prometheus.Client, provider cloud.Provider, startS
 		return nil, err
 	}
 
-	storageTotal, sErr := resultToTotals(resultStorage)
-	if sErr != nil {
+	storageTotal, err := resultToTotals(resultStorage)
+	if err != nil {
 		klog.Infof("[Warning] ClusterCostsOverTime: no storage data: %s", err)
 	}