diff --git a/lib/ansible/modules/cloud/vmware/vmware_guest.py b/lib/ansible/modules/cloud/vmware/vmware_guest.py index a1fdfd7e04..b4f1b8597e 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_guest.py +++ b/lib/ansible/modules/cloud/vmware/vmware_guest.py @@ -2020,7 +2020,7 @@ class PyVmomiHelper(PyVmomi): network_changes = True break - if len(self.params['customization']) > 0 or network_changes is True: + if len(self.params['customization']) > 0 or network_changes or self.params.get('customization_spec'): self.customize_vm(vm_obj=vm_obj) clonespec = None