mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-284: listVirtualMachines when zoneid passed
When zoneid is passed an no state is specified listVIrtualMachines does not return the destroyed vms. This patch fixes the issue. Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
15704cfa6c
commit
0ba355fbc2
|
|
@ -3161,10 +3161,6 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
|||
|
||||
if (zone != null) {
|
||||
sc.setParameters("dataCenterId", zone);
|
||||
|
||||
if (state == null) {
|
||||
sc.setParameters("stateNEQ", "Destroyed");
|
||||
}
|
||||
}
|
||||
if (pod != null) {
|
||||
sc.setParameters("podId", pod);
|
||||
|
|
|
|||
Loading…
Reference in New Issue