1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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