Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion engine/orchestration/src/com/cloud/vm/VmWorkStart.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public VmWorkStart(long userId, long accountId, long vmId, String handlerName) {

public DeploymentPlan getPlan() {

if (podId != null || clusterId != null || hostId != null || poolId != null || physicalNetworkId != null) {
if (podId != null || clusterId != null || hostId != null || poolId != null || physicalNetworkId != null || avoids !=null) {
// this is ugly, to work with legacy code, we need to re-construct the DeploymentPlan hard-codely
// this has to be refactored together with migrating legacy code into the new way
ReservationContext context = null;
Expand All @@ -70,6 +70,7 @@ public DeploymentPlan getPlan() {
DeploymentPlan plan = new DataCenterDeployment(
dcId, podId, clusterId, hostId, poolId, physicalNetworkId,
context);
plan.setAvoids(avoids);
return plan;
}

Expand Down