mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 7126: return true only when assignToLoadBalancer succeeded.
status 7126: resolved fixed
This commit is contained in:
parent
86c8f86a56
commit
d091bdd886
@ -1378,6 +1378,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
||||
EventUtils.saveEvent(UserContext.current().getUserId(), loadBalancer.getAccountId(), level, type, description);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
// Remove the instanceIds from the load balancer since there was a failure. Make sure to commit the
|
||||
// transaction here, otherwise the act of throwing the internal error exception will cause this
|
||||
@ -1393,7 +1394,6 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
||||
_loadBalancerDao.releaseFromLockTable(loadBalancerId);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override @DB
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user