mirror of https://github.com/apache/cloudstack.git
set account details to null in listAccountCmd when there is no details
This commit is contained in:
parent
23c8d4b929
commit
8098045645
|
|
@ -333,7 +333,7 @@ public class AccountResponse extends BaseResponse {
|
|||
this.networkDomain = networkDomain;
|
||||
}
|
||||
|
||||
public void setDetails(Map details) {
|
||||
public void setDetails(Map<String, String> details) {
|
||||
this.details = details;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -693,8 +693,9 @@ public class ApiDBUtils {
|
|||
return _projectMgr.getProjectOwner(projectId).getId();
|
||||
}
|
||||
|
||||
public static Map getAccountDetails(long accountId) {
|
||||
return _accountDetailsDao.findDetails(accountId);
|
||||
public static Map<String, String> getAccountDetails(long accountId) {
|
||||
Map<String, String> details = _accountDetailsDao.findDetails(accountId);
|
||||
return details.isEmpty() ? null : details;
|
||||
}
|
||||
|
||||
public static Map<String, Set<String>> listNetworkOfferingServices(long networkOfferingId) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue