Niko Kovacevic 6 лет назад
Родитель
Сommit
6cd835b546
1 измененных файлов с 2 добавлено и 2 удалено
  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)
 	}