mirror of https://github.com/apache/cloudstack.git
bug 7069: throw exception when Vm is already assigned to load balancer
status 7069: resolved fixed
This commit is contained in:
parent
1872c941f4
commit
1117eff8f9
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue