mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
bug 6243: adding a check to return an error in case we have a null domain id for a non null account
status 6243: resolved fixed
This commit is contained in:
parent
f89e11bb21
commit
122b0d1aeb
@ -118,6 +118,10 @@ public class ListVMsCmd extends BaseCmd {
|
||||
domainId = account.getDomainId();
|
||||
}
|
||||
|
||||
if(account!=null && domainId==null){
|
||||
throw new ServerApiException(BaseCmd.ACCOUNT_ERROR, "Please specify the domain id for this account:"+account.getId());
|
||||
}
|
||||
|
||||
Long[] accountIds = null;
|
||||
if (accountId != null) {
|
||||
accountIds = new Long[1];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user