Skip to content

Commit

Permalink
Corrected the check for baremetal
Browse files Browse the repository at this point in the history
  • Loading branch information
Prachi Damle committed May 16, 2013
1 parent 0d23cd3 commit 7a92772
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -223,7 +223,7 @@ public DeployDestination planDeployment(VirtualMachineProfile<? extends VirtualM
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());
Expand Down
2 changes: 1 addition & 1 deletion server/src/com/cloud/vm/UserVmManagerImpl.java
Expand Up @@ -3171,7 +3171,7 @@ public Pair<UserVmVO, Map<VirtualMachineProfile.Param, Object>> startVirtualMach
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());
Expand Down

0 comments on commit 7a92772

Please sign in to comment.