Skip to content

Commit

Permalink
Merge pull request #633 from sapcc/domain_api
Browse files Browse the repository at this point in the history
fix: domain API acces to any az
  • Loading branch information
majewsky authored Dec 16, 2024
2 parents d9505e5 + 5f4ae9d commit b21e175
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/reports/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ func GetDomains(cluster *core.Cluster, domainID *db.DomainID, now time.Time, dbi
for _, resReport := range srvReport.Resources {
if len(resReport.PerAZ) >= 2 {
reportInAny := resReport.PerAZ[limes.AvailabilityZoneAny]
if reportInAny == nil {
continue
}
if (reportInAny.Quota == nil || *reportInAny.Quota == 0) && reportInAny.Usage == 0 {
delete(resReport.PerAZ, limes.AvailabilityZoneAny)
}
Expand Down

0 comments on commit b21e175

Please sign in to comment.