mirror of https://github.com/apache/cloudstack.git
limits changes for listing accounts and domains
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
56d8ae371c
commit
3fa9334954
|
|
@ -103,7 +103,7 @@ public class ListDomainsCmd extends BaseListCmd implements UserCmd {
|
|||
dv = EnumSet.of(DomainDetails.all);
|
||||
} else {
|
||||
try {
|
||||
ArrayList<DomainDetails> dc = new ArrayList<DomainDetails>();
|
||||
ArrayList<DomainDetails> dc = new ArrayList<>();
|
||||
for (String detail : viewDetails) {
|
||||
dc.add(DomainDetails.valueOf(detail));
|
||||
}
|
||||
|
|
@ -145,7 +145,10 @@ public class ListDomainsCmd extends BaseListCmd implements UserCmd {
|
|||
if (CollectionUtils.isEmpty(response)) {
|
||||
return;
|
||||
}
|
||||
_resourceLimitService.updateTaggedResourceLimitsAndCountsForDomains(response, getTag());
|
||||
EnumSet<DomainDetails> details = getDetails();
|
||||
if (details.contains(DomainDetails.all) || details.contains(DomainDetails.resource)) {
|
||||
_resourceLimitService.updateTaggedResourceLimitsAndCountsForDomains(response, getTag());
|
||||
}
|
||||
if (!getShowIcon()) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -151,7 +151,10 @@ public class ListAccountsCmd extends BaseListDomainResourcesCmd implements UserC
|
|||
if (CollectionUtils.isEmpty(response)) {
|
||||
return;
|
||||
}
|
||||
_resourceLimitService.updateTaggedResourceLimitsAndCountsForAccounts(response, getTag());
|
||||
EnumSet<DomainDetails> details = getDetails();
|
||||
if (details.contains(DomainDetails.all) || details.contains(DomainDetails.resource)) {
|
||||
_resourceLimitService.updateTaggedResourceLimitsAndCountsForAccounts(response, getTag());
|
||||
}
|
||||
if (!getShowIcon()) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue