Skip to content

Commit 968c252

Browse files
Harikrishna PatnalaAbhinandan Prateek
authored andcommitted
CLOUDSTACK-3351: Fix add cluster API to set right hypervisor type
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
1 parent 1e64662 commit 968c252

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/resource/ResourceManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public List<? extends Cluster> discoverCluster(AddClusterCmd cmd) throws Illegal
472472

473473
long clusterId = 0;
474474
ClusterVO cluster = new ClusterVO(dcId, podId, clusterName);
475-
cluster.setHypervisorType(cmd.getHypervisor());
475+
cluster.setHypervisorType(hypervisorType.toString());
476476

477477
cluster.setClusterType(clusterType);
478478
cluster.setAllocationState(allocationState);

0 commit comments

Comments
 (0)