From c11b8612cdf340beb3e8020b261484d052e709a8 Mon Sep 17 00:00:00 2001 From: kishan Date: Wed, 29 Dec 2010 21:21:27 +0530 Subject: [PATCH] bug 7359: search for removed accounts also while composing usage records response status 7359: resolved fixed --- server/src/com/cloud/api/ApiDBUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/com/cloud/api/ApiDBUtils.java b/server/src/com/cloud/api/ApiDBUtils.java index 58a0e682938..27fc552319f 100755 --- a/server/src/com/cloud/api/ApiDBUtils.java +++ b/server/src/com/cloud/api/ApiDBUtils.java @@ -304,6 +304,10 @@ public class ApiDBUtils { public static Account findAccountById(Long accountId) { return _accountDao.findById(accountId); } + + public static Account findAccountByIdIncludingRemoved(Long accountId) { + return _accountDao.findByIdIncludingRemoved(accountId); + } public static Account findAccountByNameDomain(String accountName, Long domainId) { return _accountDao.findActiveAccount(accountName, domainId);