mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-1083: Include removed projects while listing usage records
This commit is contained in:
parent
ca56e7667c
commit
6b3da5fbdc
|
|
@ -236,7 +236,7 @@ public class GetUsageRecordsCmd extends BaseListCmd {
|
|||
Account account = ApiDBUtils.findAccountByIdIncludingRemoved(usageRecord.getAccountId());
|
||||
if (account.getType() == Account.ACCOUNT_TYPE_PROJECT) {
|
||||
//find the project
|
||||
Project project = ApiDBUtils.findProjectByProjectAccountId(account.getId());
|
||||
Project project = ApiDBUtils.findProjectByProjectAccountIdIncludingRemoved(account.getId());
|
||||
usageRecResponse.setProjectId(project.getUuid());
|
||||
usageRecResponse.setProjectName(project.getName());
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue