Fix VMware VM support on Linux and Windows. Fixes #1919

This commit is contained in:
grossmj 2021-06-14 13:16:11 +09:30
parent e78b5fa6d6
commit cdedd53339

View File

@ -365,9 +365,9 @@ class VMware(BaseManager):
vmnet_interfaces = self._get_vmnet_interfaces_ubridge()
else:
vmnet_interfaces = self._get_vmnet_interfaces()
vmnet_interfaces = list(vmnet_interfaces.keys())
self._vmnets_info = vmnet_interfaces.copy()
self._vmnets_info = vmnet_interfaces.copy()
vmnet_interfaces = list(vmnet_interfaces.keys())
# remove vmnets already in use
for vmware_vm in self._nodes.values():
for used_vmnet in vmware_vm.vmnets: