Prevent users to add links to running Qemu VMs and start a capture on running VirtualBox VMs.

This commit is contained in:
grossmj committed 2015-05-27 13:56:27 -06:00
1 parent 91c0f05a4e
commit 0476f2932e
3 files changed
+9 -2

No files matched your search

@@ -344,7 +344,7 @@ class VirtualBoxHandler:
vm = vbox_manager.get_vm(request.match_info["vm_id"], project_id=request.match_info["project_id"])
adapter_number = int(request.match_info["adapter_number"])
pcap_file_path = os.path.join(vm.project.capture_working_directory(), request.json["capture_file_name"])
vm.start_capture(adapter_number, pcap_file_path)
yield from vm.start_capture(adapter_number, pcap_file_path)
response.json({"pcap_file_path": pcap_file_path})
@Route.post(