VMware: skip customization if no type is specified (#44510)

VM customization is not necessary if user is not specifying IP address
and netmask. This fix adds exception for type 'DHCP' which is set by default
if no networking details are provided.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/45052/merge
Abhijeet Kasurde 6 years ago committed by ansibot
parent 883572ecea
commit d4bef8652a

@ -2015,7 +2015,7 @@ class PyVmomiHelper(PyVmomi):
for nw in self.params['networks']:
for key in nw:
# We don't need customizations for these keys
if key not in ('device_type', 'mac', 'name', 'vlan'):
if key not in ('device_type', 'mac', 'name', 'vlan', 'type'):
network_changes = True
break

Loading…
Cancel
Save