cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject [41/51] [abbrv] git commit: refs/heads/vim51_win8 - CLOUDSTACK-1083: Include removed projects while listing usage records
Date Tue, 05 Feb 2013 18:06:57 GMT
CLOUDSTACK-1083: Include removed projects while  listing usage records


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/6b3da5fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/6b3da5fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/6b3da5fb

Branch: refs/heads/vim51_win8
Commit: 6b3da5fbdc65b9a952cecbba393a06961f1ee088
Parents: ca56e76
Author: Kishan Kavala <kishan@cloud.com>
Authored: Mon Feb 4 19:24:22 2013 +0530
Committer: Kishan Kavala <kishan@cloud.com>
Committed: Mon Feb 4 19:29:59 2013 +0530

----------------------------------------------------------------------
 .../com/cloud/api/commands/GetUsageRecordsCmd.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/6b3da5fb/server/src/com/cloud/api/commands/GetUsageRecordsCmd.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/commands/GetUsageRecordsCmd.java b/server/src/com/cloud/api/commands/GetUsageRecordsCmd.java
index 60afbd0..7f96b0c 100644
--- a/server/src/com/cloud/api/commands/GetUsageRecordsCmd.java
+++ b/server/src/com/cloud/api/commands/GetUsageRecordsCmd.java
@@ -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 {


Mime
View raw message