mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-20 07:18:07 +00:00
Remove noise from log when VMware is not installed
This commit is contained in:
parent
ec6411f730
commit
da8811515d
@ -222,8 +222,14 @@ class GNS3VM:
|
||||
"""
|
||||
engine = self._get_engine(engine)
|
||||
vms = []
|
||||
for vm in (yield from engine.list()):
|
||||
vms.append({"vmname": vm["vmname"]})
|
||||
try:
|
||||
for vm in (yield from engine.list()):
|
||||
vms.append({"vmname": vm["vmname"]})
|
||||
except GNS3VMError as e:
|
||||
# We raise error only if user activated the GNS3 VM
|
||||
# otherwise you have noise when VMware is not installed
|
||||
if self.enable:
|
||||
raise e
|
||||
return vms
|
||||
|
||||
@asyncio.coroutine
|
||||
|
Loading…
Reference in New Issue
Block a user