You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mc...@apache.org on 2013/02/05 19:06:57 UTC

[41/51] [abbrv] git commit: refs/heads/vim51_win8 - CLOUDSTACK-1083: Include removed projects while listing usage records

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 <ki...@cloud.com>
Authored: Mon Feb 4 19:24:22 2013 +0530
Committer: Kishan Kavala <ki...@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 {