mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 6958: return state for Account api commands
status 6958: resolved fixed
This commit is contained in:
parent
b6b772e21e
commit
c0e2986766
@ -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) {
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user