Catch GeneratorExit exception when trying to create a Ghost IOS image.

This commit is contained in:
grossmj 2015-08-01 11:50:16 -06:00
parent 7c1dd75ad7
commit bb69f02da6

View File

@ -159,7 +159,10 @@ class DynamipsVMHandler:
dynamips_manager = Dynamips.instance()
vm = dynamips_manager.get_vm(request.match_info["vm_id"], project_id=request.match_info["project_id"])
try:
yield from dynamips_manager.ghost_ios_support(vm)
except GeneratorExit:
pass
yield from vm.start()
response.set_status(204)