Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Jan 8, 2024
1 parent 4c454aa commit 88342b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/metal-api/internal/service/partition-service.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ func (r *partitionResource) calcPartitionCapacity(pcr *v1.PartitionCapacityReque

cap.Total++

for _, reservation := range size.Reservations {
for _, reservation := range size.Reservations.ForPartition(p.ID) {
reservation := reservation

cap.Reservations += reservation.Amount
Expand Down

0 comments on commit 88342b8

Please sign in to comment.