bug 14694: when select valid clusters, exclude the removed ones

status 14694: resolved fixed
This commit is contained in:
Alena Prokharchyk 2012-04-30 13:09:44 -07:00
parent cdd37ed5dd
commit 2feafb18a0

View File

@ -690,7 +690,7 @@ public class Upgrade2214to30 implements DbUpgrade {
try{
//Get all hypervisors in use
try {
pstmt = conn.prepareStatement("select distinct(hypervisor_type) from `cloud`.`cluster`");
pstmt = conn.prepareStatement("select distinct(hypervisor_type) from `cloud`.`cluster` where removed is null");
rs = pstmt.executeQuery();
while(rs.next()){
if("XenServer".equals(rs.getString(1))){