From 65e55d47b129e591d9676a3180773c4b8cb75bef Mon Sep 17 00:00:00 2001 From: Davis Phillips Date: Mon, 6 Feb 2017 13:37:42 -0600 Subject: [PATCH] fixes 20904 (#21068) --- lib/ansible/modules/cloud/vmware/vmware_guest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/vmware/vmware_guest.py b/lib/ansible/modules/cloud/vmware/vmware_guest.py index c04f6bbbc5..2440e3aa65 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_guest.py +++ b/lib/ansible/modules/cloud/vmware/vmware_guest.py @@ -1055,7 +1055,7 @@ class PyVmomiHelper(object): self.configure_disks(vm_obj=vm_obj) self.configure_network(vm_obj=vm_obj) - if len(self.params['customization']) > 0: + if len(self.params['customization']) > 0 or len(self.params['networks']) > 0: self.customize_vm(vm_obj=vm_obj) try: