mirror of https://github.com/apache/cloudstack.git
bug 6746: use loadbalancer name rather than the command's name for updating the load balancer; use the load balancer's account id rather than the load balancer id when searching for the load balancer owner
status 6746: resolved fixed
This commit is contained in:
parent
4f9f249218
commit
c9d9a18ace
|
|
@ -2130,7 +2130,7 @@ public class NetworkManagerImpl implements NetworkManager, DomainRouterService {
|
|||
Long loadBalancerId = cmd.getId();
|
||||
String privatePort = cmd.getPrivatePort();
|
||||
String algorithm = cmd.getAlgorithm();
|
||||
String name = cmd.getName();
|
||||
String name = cmd.getLoadBalancerName();
|
||||
String description = cmd.getDescription();
|
||||
Account account = UserContext.current().getAccount();
|
||||
|
||||
|
|
@ -2148,7 +2148,7 @@ public class NetworkManagerImpl implements NetworkManager, DomainRouterService {
|
|||
}
|
||||
}
|
||||
|
||||
Account lbOwner = _accountDao.findById(loadBalancer.getId());
|
||||
Account lbOwner = _accountDao.findById(loadBalancer.getAccountId());
|
||||
if (lbOwner == null) {
|
||||
throw new InvalidParameterValueException("Unable to update load balancer rule, cannot find owning account");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue