Skip to content

Commit b87d32b

Browse files
author
Toni Zamparetti
committed
fix the validation of CPVMs states in multiple zones
1 parent 6f1aa96 commit b87d32b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

server/src/main/java/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,12 +1525,9 @@ public boolean isPoolReadyForScan(Long dataCenterId) {
15251525
return false;
15261526
}
15271527

1528-
List<ConsoleProxyVO> l = consoleProxyDao.getProxyListInStates(State.Starting, State.Stopping);
1529-
if (l.size() > 0) {
1530-
if (logger.isDebugEnabled()) {
1531-
logger.debug("Zone {} has {} console proxy VM(s) in transition state", zone, l.size());
1532-
}
1533-
1528+
List<ConsoleProxyVO> l = consoleProxyDao.getProxyListInStates(dataCenterId, State.Starting, State.Stopping);
1529+
if (!l.isEmpty()) {
1530+
logger.debug("Zone {} has {} console proxy VM(s) in transition state.", zone, l.size());
15341531
return false;
15351532
}
15361533

0 commit comments

Comments
 (0)