bug 6958: return state for Account api commands

status 6958: resolved fixed
This commit is contained in:
alena 2010-11-05 15:42:37 -07:00
parent b6b772e21e
commit c0e2986766
2 changed files with 2 additions and 1 deletions

View File

@ -363,7 +363,7 @@ public class ApiDBUtils {
}
public static VMTemplateVO findTemplateById(Long templateId) {
return _templateDao.findById(templateId);
return _templateDao.findByIdIncludingRemoved(templateId);
}
public static VMTemplateHostVO findTemplateHostRef(long templateId, long zoneId) {

View File

@ -130,6 +130,7 @@ public class ApiResponseHelper {
accountResponse.setAccountType(account.getType());
accountResponse.setDomainId(account.getDomainId());
accountResponse.setDomainName(ApiDBUtils.findDomainById(account.getDomainId()).getName());
accountResponse.setState(account.getState());
//get network stat
List<UserStatisticsVO> stats = ApiDBUtils.listUserStatsBy(account.getId());