Corrected the check for baremetal

This commit is contained in:
Prachi Damle 2013-05-16 14:24:44 -07:00
parent 0d23cd3c9e
commit 7a9277299a
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -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());