GutoVeronezi commented on code in PR #6690:
URL: https://github.com/apache/cloudstack/pull/6690#discussion_r969531131
##########
framework/quota/src/main/java/org/apache/cloudstack/quota/dao/QuotaAccountDaoImpl.java:
##########
@@ -36,7 +38,15 @@ public class QuotaAccountDaoImpl extends
GenericDaoBase<QuotaAccountVO, Long> im
@Override
public List<QuotaAccountVO> listAllQuotaAccount() {
- return listAllQuotaAccount(null, null).first();
+ List<QuotaAccountVO> accountsWithQuotaEnabled = new ArrayList<>();
+ for (QuotaAccountVO account : listAllQuotaAccount(null, null).first())
{
+ if
(Boolean.TRUE.equals(getQuotaAccountEnabled(account.getAccountId()))) {
Review Comment:
@DaanHoogland nothing in special in this case, just demonstrating a library
that facades the operation (better to read IMHO).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]