vmware - not reqiured to add host, host will be added as part of cluster

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit b3e2871e73)
This commit is contained in:
rayeesn 2013-07-11 10:06:34 -07:00 committed by Prasanna Santhanam
parent 8816d41d3b
commit 9bc105f39a
1 changed files with 3 additions and 2 deletions

View File

@ -84,8 +84,9 @@ specify a valid config file" % cfgFile)
clusterresponse = self.apiClient.addCluster(clustercmd)
clusterId = clusterresponse[0].id
self.addHosts(cluster.hosts, zoneId, podId, clusterId,
cluster.hypervisor)
if cluster.hypervisor.lower() != "vmware":
self.addHosts(cluster.hosts, zoneId, podId, clusterId,
cluster.hypervisor)
self.createPrimaryStorages(cluster.primaryStorages, zoneId, podId,
clusterId)