Call planDeploymentRouters in the same place as we do in master

This commit is contained in:
Hugo Trippaers 2014-11-14 10:58:49 +01:00 committed by wilderrodrigues
parent 87855d6bb7
commit b07ff145b3

View File

@ -202,7 +202,6 @@ public class RouterDeploymentDefinition {
for (final DeployDestination destination : destinations) { for (final DeployDestination destination : destinations) {
dest = destination; dest = destination;
planDeploymentRouters();
generateDeploymentPlan(); generateDeploymentPlan();
executeDeployment(); executeDeployment();
} }
@ -334,8 +333,8 @@ public class RouterDeploymentDefinition {
*/ */
protected void executeDeployment() protected void executeDeployment()
throws ConcurrentOperationException, InsufficientCapacityException, ResourceUnavailableException { throws ConcurrentOperationException, InsufficientCapacityException, ResourceUnavailableException {
//Check current redundant routers, if possible(all routers are stopped), reset the priority //Check current redundant routers, if possible(all routers are stopped), reset the priority
planDeploymentRouters();
setupPriorityOfRedundantRouter(); setupPriorityOfRedundantRouter();
if (getNumberOfRoutersToDeploy() > 0 && prepareDeployment()) { if (getNumberOfRoutersToDeploy() > 0 && prepareDeployment()) {