Get IP address from guest Hyper-V VM. Ref https://github.com/GNS3/gns3-gui/issues/763

This commit is contained in:
grossmj
2018-08-12 01:49:48 -07:00
parent c9767a06b3
commit c0521732a9
2 changed files with 55 additions and 14 deletions

View File

@ -404,7 +404,7 @@ class Compute:
Check if remote server is accessible
"""
if not self._connected and not self._closed:
if not self._connected and not self._closed and self.host:
try:
log.info("Connecting to compute '{}'".format(self._id))
response = yield from self._run_http_query("GET", "/capabilities")