Fix bug when GNS3 VM were not saved. Fix tests.

This commit is contained in:
grossmj
2019-04-14 17:42:20 +07:00
parent 6dc58b28fd
commit e962717448
2 changed files with 8 additions and 2 deletions

View File

@ -72,7 +72,9 @@ class GNS3VMHandler:
})
async def update(request, response):
gns3_vm = Controller().instance().gns3vm
controller = Controller().instance()
gns3_vm = controller.gns3vm
await gns3_vm.update_settings(request.json)
controller.save()
response.json(gns3_vm)
response.set_status(201)