mirror of https://github.com/apache/cloudstack.git
bug 14694: when select valid clusters, exclude the removed ones
status 14694: resolved fixed
This commit is contained in:
parent
98b93aeaa6
commit
4b64917984
|
|
@ -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))){
|
||||
|
|
|
|||
Loading…
Reference in New Issue