Skip to content

Commit c543f5f

Browse files
server: reapply checkVmProfileAndHost to check guest os preference (apache#6000)
1 parent e0a5df5 commit c543f5f

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

server/src/main/java/com/cloud/deploy/DeploymentPlanningManagerImpl.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -424,14 +424,7 @@ public DeployDestination planDeployment(VirtualMachineProfile vmProfile, Deploym
424424
}
425425
} else {
426426
if (host.getStatus() == Status.Up) {
427-
boolean hostTagsMatch = true;
428-
if(offering.getHostTag() != null){
429-
_hostDao.loadHostTags(host);
430-
if (!(host.getHostTags() != null && host.getHostTags().contains(offering.getHostTag()))) {
431-
hostTagsMatch = false;
432-
}
433-
}
434-
if (hostTagsMatch) {
427+
if (checkVmProfileAndHost(vmProfile, host)) {
435428
long cluster_id = host.getClusterId();
436429
ClusterDetailsVO cluster_detail_cpu = _clusterDetailsDao.findDetail(cluster_id,
437430
"cpuOvercommitRatio");

0 commit comments

Comments
 (0)