bug 7069: throw exception when Vm is already assigned to load balancer

status 7069: resolved fixed
This commit is contained in:
kishan 2011-01-19 16:00:56 +05:30
parent 1872c941f4
commit 1117eff8f9
1 changed files with 1 additions and 2 deletions

View File

@ -131,8 +131,7 @@ public class LoadBalancingRulesManagerImpl implements LoadBalancingRulesManager,
for (Long instanceId : instanceIds) {
if (mappedInstanceIds.contains(instanceId)) {
s_logger.debug("VM " + instanceId + " is already mapped to load balancer.");
continue;
throw new InvalidParameterValueException("VM " + instanceId + " is already mapped to load balancer.");
}
UserVm vm = _vmDao.findById(instanceId);