weizhouapache commented on code in PR #6845: URL: https://github.com/apache/cloudstack/pull/6845#discussion_r1006572877
########## server/src/main/java/com/cloud/deploy/DeploymentPlanningManagerImpl.java: ########## @@ -406,7 +410,7 @@ public DeployDestination planDeployment(VirtualMachineProfile vmProfile, Deploym planner = getDeploymentPlannerByName(plannerName); } - if (vm.getLastHostId() != null && haVmTag == null) { + if (vm.getLastHostId() != null && haVmTag == null && !forgetLastHostBool) { Review Comment: exacted to a variable, hope it is good to you -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org