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

Fixes: #57873
This commit is contained in:
ngp-star 2019-11-28 16:43:46 +05:30 committed by Abhijeet Kasurde
parent 6ae01d4fbd
commit 34ecd6cb25

View file

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