Do not raise an error if no VM is selected for remote GNS3 VM

This commit is contained in:
Julien Duponchelle 2017-01-18 09:49:59 +01:00
parent 47c58bb400
commit 3c0bdd12b5
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -51,6 +51,8 @@ class RemoteGNS3VM(BaseGNS3VM):
Starts the GNS3 VM.
"""
if not self.vmname:
return
vm_compute = None
for compute in self._controller.computes.values():
if compute.name == self.vmname: