1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Catch VMWare errors when getting status after GNS3 VM start

Fix #1008
This commit is contained in:
Julien Duponchelle 2017-05-09 19:16:47 +02:00
parent b4467d83bf
commit e870b0cfa0
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -118,7 +118,10 @@ class VMwareGNS3VM(BaseGNS3VM):
if vmware_tools_state not in ("installed", "running"):
raise GNS3VMError("VMware tools are not installed in {}".format(self.vmname))
try:
running = yield from self._is_running()
except VMwareError as e:
raise GNS3VMError("Could not list VMware VMs: {}".format(str(e)))
if not running:
log.info("Update GNS3 VM settings")
# set the number of vCPUs and amount of RAM