mirror of https://github.com/apache/cloudstack.git
server: fix list diskoffering by domainid returns Inactive offerings (#10916)
This commit is contained in:
parent
b760b0262f
commit
857ccb0a3b
|
|
@ -3485,7 +3485,9 @@ public class QueryManagerImpl extends MutualExclusiveIdsManagerBase implements Q
|
|||
|
||||
SearchCriteria<DiskOfferingVO> sc = diskOfferingSearch.create();
|
||||
sc.setParameters("computeOnly", false);
|
||||
sc.setParameters("activeState", DiskOffering.State.Active);
|
||||
if (state != null) {
|
||||
sc.setParameters("state", state);
|
||||
}
|
||||
|
||||
sc.setJoinParameters("domainDetailsSearch", "domainId", domainId);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue