diff --git a/lib/ansible/modules/cloud/vmware/vmware_guest.py b/lib/ansible/modules/cloud/vmware/vmware_guest.py index 2ea31a1179..9de5051d36 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_guest.py +++ b/lib/ansible/modules/cloud/vmware/vmware_guest.py @@ -1459,7 +1459,7 @@ class PyVmomiHelper(PyVmomi): self.configspec.files = vim.vm.FileInfo(logDirectory=None, snapshotDirectory=None, suspendDirectory=None, - vmPathName="[" + datastore_name + "] " + self.params["name"]) + vmPathName="[" + datastore_name + "]") clone_method = 'CreateVM_Task' resource_pool = self.get_resource_pool() diff --git a/test/integration/targets/vmware_guest/tasks/main.yml b/test/integration/targets/vmware_guest/tasks/main.yml index 5f3811a9a7..1d561bd097 100644 --- a/test/integration/targets/vmware_guest/tasks/main.yml +++ b/test/integration/targets/vmware_guest/tasks/main.yml @@ -21,3 +21,5 @@ - include: create_rp_d1_c1_f0.yml - include: create_guest_invalid_d1_c1_f0.yml - include: mac_address_d1_c1_f0.yml +- include: disk_type_d1_c1_f0.yml +#- include: template_d1_c1_f0.yml