From 5f15667ad1957aaa9d78e8e3669b7696bb2b1a83 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 24 Feb 2016 15:08:48 +0100 Subject: [PATCH] Rename invalid variable iou_manager in Docker --- gns3server/handlers/api/docker_handler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gns3server/handlers/api/docker_handler.py b/gns3server/handlers/api/docker_handler.py index 35c8a7c5..e1bda776 100644 --- a/gns3server/handlers/api/docker_handler.py +++ b/gns3server/handlers/api/docker_handler.py @@ -297,8 +297,8 @@ class DockerHandler: input=VM_CAPTURE_SCHEMA) def start_capture(request, response): - iou_manager = Docker.instance() - vm = iou_manager.get_vm(request.match_info["vm_id"], project_id=request.match_info["project_id"]) + docker_manager = Docker.instance() + vm = docker_manager.get_vm(request.match_info["vm_id"], project_id=request.match_info["project_id"]) adapter_number = int(request.match_info["adapter_number"]) port_number = int(request.match_info["port_number"]) pcap_file_path = os.path.join(vm.project.capture_working_directory(), request.json["capture_file_name"]) @@ -325,8 +325,8 @@ class DockerHandler: description="Stop a packet capture on a IOU VM instance") def stop_capture(request, response): - iou_manager = Docker.instance() - vm = iou_manager.get_vm(request.match_info["vm_id"], project_id=request.match_info["project_id"]) + docker_manager = Docker.instance() + vm = docker_manager.get_vm(request.match_info["vm_id"], project_id=request.match_info["project_id"]) if not vm.is_running(): raise HTTPConflict(text="Cannot capture traffic on a non started VM")