You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ki...@apache.org on 2013/02/04 15:01:02 UTC

git commit: refs/heads/4.1 - CLOUDSTACK-1083: Include removed projects while listing usage records

Updated Branches:
  refs/heads/4.1 5840a4b1e -> ed6074573


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/ed607457
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/ed607457
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/ed607457

Branch: refs/heads/4.1
Commit: ed607457342c31f20b90d2e63ed0a0e6e0471469
Parents: 5840a4b
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:30:37 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/ed607457/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 {