Fixing race condition when starting the GNS3 VM.

This commit is contained in:
grossmj committed 2018-01-10 16:22:55 +07:00
1 parent 5f14f8eb46
commit f9c7c15f95
4 files changed
+41 -31

No files matched your search

@@ -171,7 +171,7 @@ class VMwareGNS3VM(BaseGNS3VM):
trial -= 1
# If ip not found fallback on old method
if trial == 0:
log.warn("No IP found for the VM via readVariable fallback to getGuestIPAddress")
log.warning("No IP found for the VM via readVariable fallback to getGuestIPAddress")
guest_ip_address = yield from self._execute("getGuestIPAddress", [self._vmx_path, "-wait"], timeout=120)
break
yield from asyncio.sleep(1)