VMware: Update hostname when VM is cloned (#65037)

Fixes: #57873
pull/65353/head
ngp-star 5 years ago committed by Abhijeet Kasurde
parent 6ae01d4fbd
commit 34ecd6cb25

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

Loading…
Cancel
Save