Merge branch '4.16' into main

This commit is contained in:
Suresh Kumar Anaparti 2022-02-17 14:28:26 +05:30
commit 545f85936a
No known key found for this signature in database
GPG Key ID: D7CEAE3A9E71D0AA
1 changed files with 1 additions and 8 deletions

View File

@ -422,14 +422,7 @@ StateListener<State, VirtualMachine.Event, VirtualMachine>, Configurable {
}
} else {
if (host.getStatus() == Status.Up) {
boolean hostTagsMatch = true;
if(offering.getHostTag() != null){
_hostDao.loadHostTags(host);
if (!(host.getHostTags() != null && host.getHostTags().contains(offering.getHostTag()))) {
hostTagsMatch = false;
}
}
if (hostTagsMatch) {
if (checkVmProfileAndHost(vmProfile, host)) {
long cluster_id = host.getClusterId();
ClusterDetailsVO cluster_detail_cpu = _clusterDetailsDao.findDetail(cluster_id,
"cpuOvercommitRatio");