Преглед изворни кода

Log missing storage data, but don't return error

Niko Kovacevic пре 6 година
родитељ
комит
bfe082bae4
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      pkg/costmodel/cluster.go

+ 2 - 1
pkg/costmodel/cluster.go

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