Skip to content

Commit

Permalink
limes: fix crash in topology validation of capacity-liquid (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
majewsky authored Dec 10, 2024
1 parent 3f9bd94 commit aabca03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/plugins/capacity_liquid.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ func (p *liquidCapacityPlugin) Scrape(ctx context.Context, backchannel core.Capa
resourceNames := SortedMapKeys(p.LiquidServiceInfo.Resources)
var errs []error
for _, resourceName := range resourceNames {
if !p.LiquidServiceInfo.Resources[resourceName].HasCapacity {
continue
}
perAZ := resp.Resources[resourceName].PerAZ
topology := p.LiquidServiceInfo.Resources[resourceName].Topology
err := MatchLiquidReportToTopology(perAZ, topology)
Expand Down

0 comments on commit aabca03

Please sign in to comment.