From 6e89f2c7c7f746ec96337a183a5af02df9cd1dd5 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 2 Mar 2015 19:17:13 -0700 Subject: [PATCH] Remove console_host from IOU and Qemu handlers. --- gns3server/handlers/api/iou_handler.py | 1 - gns3server/handlers/api/qemu_handler.py | 3 --- 2 files changed, 4 deletions(-) diff --git a/gns3server/handlers/api/iou_handler.py b/gns3server/handlers/api/iou_handler.py index 63a18a42..cd90fb2a 100644 --- a/gns3server/handlers/api/iou_handler.py +++ b/gns3server/handlers/api/iou_handler.py @@ -56,7 +56,6 @@ class IOUHandler: request.match_info["project_id"], request.json.get("vm_id"), console=request.json.get("console"), - console_host=PortManager.instance().console_host, serial_adapters=request.json.get("serial_adapters"), ethernet_adapters=request.json.get("ethernet_adapters"), ram=request.json.get("ram"), diff --git a/gns3server/handlers/api/qemu_handler.py b/gns3server/handlers/api/qemu_handler.py index 7905be0a..85425568 100644 --- a/gns3server/handlers/api/qemu_handler.py +++ b/gns3server/handlers/api/qemu_handler.py @@ -19,7 +19,6 @@ import os from ...web.route import Route -from ...modules.port_manager import PortManager from ...schemas.qemu import QEMU_CREATE_SCHEMA from ...schemas.qemu import QEMU_UPDATE_SCHEMA from ...schemas.qemu import QEMU_OBJECT_SCHEMA @@ -57,8 +56,6 @@ class QEMUHandler: qemu_path=request.json.get("qemu_path"), console=request.json.get("console"), monitor=request.json.get("monitor"), - console_host=PortManager.instance().console_host, - monitor_host=PortManager.instance().console_host, ) # Clear already used keys map(request.json.__delitem__, ["name", "project_id", "vm_id",