vmware_guest: exclude dvswitch_name from guest os customization (#65997)

- exclude dvswitch_name from guest os customization
- add changelog fragment for ansible PR#65997
This commit is contained in:
njferrant 2020-01-06 16:41:02 -05:00 committed by Gonéri Le Bouder
parent 22855f73fb
commit bac2e02900
2 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- vmware_guest - Exclude dvswitch_name from triggering guest os customization.

View file

@ -2432,7 +2432,7 @@ class PyVmomiHelper(PyVmomi):
if key == 'type' and nw['type'] == 'dhcp':
network_changes = True
break
if key not in ('device_type', 'mac', 'name', 'vlan', 'type', 'start_connected'):
if key not in ('device_type', 'mac', 'name', 'vlan', 'type', 'start_connected', 'dvswitch_name'):
network_changes = True
break
@ -2701,7 +2701,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', 'type', 'start_connected'):
if key not in ('device_type', 'mac', 'name', 'vlan', 'type', 'start_connected', 'dvswitch_name'):
network_changes = True
break
if len(self.params['customization']) > 1 or network_changes or self.params.get('customization_spec'):