bug 8480: allow multiple hosts in maintenance mode

status 8480: resolved fixed
This commit is contained in:
anthony 2011-03-15 16:41:49 -07:00
parent 05e5845176
commit 6d691f0021
1 changed files with 2 additions and 2 deletions

View File

@ -697,8 +697,8 @@ public class ManagementServerImpl implements ManagementServer {
throw new InvalidParameterValueException("Unable to find host with ID: " + hostId + ". Please specify a valid host ID.");
}
if (_hostDao.countBy(host.getClusterId(), Status.PrepareForMaintenance, Status.ErrorInMaintenance, Status.Maintenance) > 0) {
throw new InvalidParameterValueException("There are other servers in maintenance mode.");
if (_hostDao.countBy(host.getClusterId(), Status.PrepareForMaintenance, Status.ErrorInMaintenance) > 0) {
throw new InvalidParameterValueException("There are other servers in PrepareForMaintenance OR ErrorInMaintenance STATUS in cluster " + host.getClusterId());
}
if (_storageMgr.isLocalStorageActiveOnHost(host)) {