mirror of
https://github.com/apache/cloudstack
synced 2026-08-02 05:26:35 +00:00
Ignore projectid=-1 on Quota summary (#13658)
This commit is contained in:
parent
424f0dfdf5
commit
8148c532e0
@ -116,6 +116,9 @@ public class QuotaSummaryCmd extends BaseListCmd {
|
||||
}
|
||||
|
||||
public Long getProjectId() {
|
||||
if (projectId == null || projectId == -1L) {
|
||||
return null;
|
||||
}
|
||||
return projectId;
|
||||
}
|
||||
|
||||
@ -129,9 +132,10 @@ public class QuotaSummaryCmd extends BaseListCmd {
|
||||
|
||||
@Override
|
||||
public long getEntityOwnerId() {
|
||||
if (ObjectUtils.allNull(accountId, accountName, projectId)) {
|
||||
Long convertedProjectId = getProjectId();
|
||||
if (ObjectUtils.allNull(accountId, accountName, convertedProjectId)) {
|
||||
return -1;
|
||||
}
|
||||
return _accountService.finalizeAccountId(accountId, accountName, domainId, projectId);
|
||||
return _accountService.finalizeAccountId(accountId, accountName, domainId, convertedProjectId);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user