VMware: Fix cluster argument of module vmware_content_deploy_template (#65715)

pull/65834/head
gp 5 years ago committed by Abhijeet Kasurde
parent 885cecfc94
commit 98f19c970f

@ -0,0 +1,2 @@
bugfixes:
- "`vmware_content_deploy_template`'s `cluster` argument no longer fails with an error message about resource pools."

@ -190,7 +190,7 @@ class VmwareContentDeployTemplate(VmwareRestClient):
# Find the Cluster by the given Cluster name
self.cluster_id = None
if self.cluster:
self.cluster_id = self.get_resource_pool_by_name(self.datacenter, self.resourcepool)
self.cluster_id = self.get_cluster_by_name(self.datacenter, self.cluster)
if not self.cluster_id:
self.module.fail_json(msg="Failed to find the Cluster %s" % self.cluster)
# Create VM placement specs

Loading…
Cancel
Save