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:
Simon Waterhouse 2012-11-13 11:59:08 +00:00 committed by Prasanna Santhanam
parent 15704cfa6c
commit 0ba355fbc2
1 changed files with 0 additions and 4 deletions

View File

@ -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);