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",