mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-24 06:51:19 +00:00
Catch GeneratorExit exception when trying to create a Ghost IOS image.
This commit is contained in:
parent
7c1dd75ad7
commit
bb69f02da6
@ -159,7 +159,10 @@ class DynamipsVMHandler:
|
|||||||
|
|
||||||
dynamips_manager = Dynamips.instance()
|
dynamips_manager = Dynamips.instance()
|
||||||
vm = dynamips_manager.get_vm(request.match_info["vm_id"], project_id=request.match_info["project_id"])
|
vm = dynamips_manager.get_vm(request.match_info["vm_id"], project_id=request.match_info["project_id"])
|
||||||
yield from dynamips_manager.ghost_ios_support(vm)
|
try:
|
||||||
|
yield from dynamips_manager.ghost_ios_support(vm)
|
||||||
|
except GeneratorExit:
|
||||||
|
pass
|
||||||
yield from vm.start()
|
yield from vm.start()
|
||||||
response.set_status(204)
|
response.set_status(204)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user