mirror of https://github.com/apache/cloudstack.git
Fix baremetal planner reply to non-baremetal VM when migration
This commit is contained in:
parent
2df6e5cc69
commit
523a32edaa
|
|
@ -1300,7 +1300,12 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
|
|||
DeployDestination dest = null;
|
||||
while (true) {
|
||||
for (DeploymentPlanner planner : _planners) {
|
||||
dest = planner.plan(profile, plan, excludes);
|
||||
if (planner.canHandle(profile, plan, excludes)) {
|
||||
dest = planner.plan(profile, plan, excludes);
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (dest != null) {
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug("Planner " + planner + " found " + dest + " for migrating to.");
|
||||
|
|
|
|||
Loading…
Reference in New Issue