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

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>
This commit is contained in:
Abhijeet Kasurde 2018-09-10 15:37:15 +05:30 committed by ansibot
parent 883572ecea
commit d4bef8652a

View file

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