CLOUDSTACK-3351: Fix add cluster API to set right hypervisor type

Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
This commit is contained in:
Harikrishna Patnala 2013-07-04 11:18:35 +05:30 committed by Abhinandan Prateek
parent 1e646629fe
commit 968c252ca5
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
long clusterId = 0;
ClusterVO cluster = new ClusterVO(dcId, podId, clusterName);
cluster.setHypervisorType(cmd.getHypervisor());
cluster.setHypervisorType(hypervisorType.toString());
cluster.setClusterType(clusterType);
cluster.setAllocationState(allocationState);