VMware: trigger customization for customization_spec (#45415)

This fix allows to trigger VM customization if user specifies
customization spec.

Fixes: #44159

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2018-09-26 11:56:45 +05:30 committed by ansibot
parent a6b095756c
commit c98cec17e0

View file

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