Fixes RuntimeError: Event loop is closed. Fixes #266.

This commit is contained in:
Jeremy committed 2015-07-20 16:02:28 -06:00
1 parent dfd6af3c22
commit 6ee94331d4
2 files changed
+14 -4

No files matched your search

+1 -1
View File
@@ -210,7 +210,7 @@ class VMwareVM(BaseVM):
if self._adapter_type != "default":
adapter_type = "ethernet{}.virtualdev".format(adapter_number)
if adapter_type in self._vmx_pairs and self._vmx_pairs[adapter_type] != self._adapter_type:
raise VMwareError("Network adapter {} is not of type {}, please fix or remove it".format(self._adapter_type))
raise VMwareError("Network adapter {} is not of type {}, please fix or remove it".format(adapter_number, self._adapter_type))
# check if connected to an adapter configured for nat or bridge
if self._ethernet_adapters[adapter_number].get_nio(0) and not self._use_any_adapter: