mirror of https://github.com/apache/cloudstack.git
Corrected the check for baremetal
This commit is contained in:
parent
0d23cd3c9e
commit
7a9277299a
|
|
@ -223,7 +223,7 @@ public class DeploymentPlanningManagerImpl extends ManagerBase implements Deploy
|
|||
ServiceOffering offering = vmProfile.getServiceOffering();
|
||||
String plannerName = offering.getDeploymentPlanner();
|
||||
if (plannerName == null) {
|
||||
if (vm.getHypervisorType() != HypervisorType.BareMetal) {
|
||||
if (vm.getHypervisorType() == HypervisorType.BareMetal) {
|
||||
plannerName = "BareMetalPlanner";
|
||||
} else {
|
||||
plannerName = _configDao.getValue(Config.VmDeploymentPlanner.key());
|
||||
|
|
|
|||
|
|
@ -3171,7 +3171,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Use
|
|||
ServiceOfferingVO offering = _serviceOfferingDao.findByIdIncludingRemoved(vm.getServiceOfferingId());
|
||||
String plannerName = offering.getDeploymentPlanner();
|
||||
if (plannerName == null) {
|
||||
if (vm.getHypervisorType() != HypervisorType.BareMetal) {
|
||||
if (vm.getHypervisorType() == HypervisorType.BareMetal) {
|
||||
plannerName = "BareMetalPlanner";
|
||||
} else {
|
||||
plannerName = _configDao.getValue(Config.VmDeploymentPlanner.key());
|
||||
|
|
|
|||
Loading…
Reference in New Issue