fixes 20904 (#21068)

This commit is contained in:
Davis Phillips 2017-02-06 13:37:42 -06:00 committed by jctanner
parent 827723db90
commit 65e55d47b1

View file

@ -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: