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:
parent
883572ecea
commit
d4bef8652a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue