Merge pull request #1212 from GNS3/fix-vcpus-controll-on-vmware

Fix GNS3VM vCPUs control on VMware, fixes: #2324
This commit is contained in:
Jeremy Grossmann 2017-11-06 23:46:04 +08:00 committed by GitHub
commit ace7b0c69f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,11 +272,10 @@ class GNS3VM:
if not engine.running:
if self._settings["vmname"] is None:
return
log.info("Start the GNS3 VM")
engine.vmname = self._settings["vmname"]
engine.ram = self._settings["ram"]
engine.vpcus = self._settings["vcpus"]
engine.vcpus = self._settings["vcpus"]
engine.headless = self._settings["headless"]
compute = yield from self._controller.add_compute(compute_id="vm",
name="GNS3 VM is starting ({})".format(engine.vmname),