Skip to content

Commit

Permalink
daemon: add missing conversion logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Meulengracht committed Jun 27, 2022
1 parent 05186f4 commit cd37eab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions daemon/api_quotas.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ func createQuotaValues(grp *quota.Group) *client.QuotaValues {
CPUs: grp.CPULimit.AllowedCPUs,
}
}
if grp.JournalLimit != nil {
constraints.Journal = &client.QuotaJournalValues{
Size: grp.JournalLimit.Size,
RateCount: grp.JournalLimit.RateCount,
RatePeriod: grp.JournalLimit.RatePeriod,
}
}
return &constraints
}

Expand Down

0 comments on commit cd37eab

Please sign in to comment.