From 210aa6f12af98a22726a5dede60cdb6242f5c40c Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sun, 22 Feb 2015 19:56:52 -0700 Subject: [PATCH] Bit of cleaning. --- gns3server/handlers/qemu_handler.py | 1 - gns3server/modules/qemu/qemu_vm.py | 7 ------- gns3server/schemas/iou.py | 7 +------ 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/gns3server/handlers/qemu_handler.py b/gns3server/handlers/qemu_handler.py index c170f7f6..a802e3b2 100644 --- a/gns3server/handlers/qemu_handler.py +++ b/gns3server/handlers/qemu_handler.py @@ -292,6 +292,5 @@ class QEMUHandler: output=QEMU_BINARY_LIST_SCHEMA) def list_binaries(request, response): - qemu_manager = Qemu.instance() binaries = yield from Qemu.binary_list() response.json(binaries) diff --git a/gns3server/modules/qemu/qemu_vm.py b/gns3server/modules/qemu/qemu_vm.py index 6b491c76..eb4ab118 100644 --- a/gns3server/modules/qemu/qemu_vm.py +++ b/gns3server/modules/qemu/qemu_vm.py @@ -25,19 +25,12 @@ import shutil import random import subprocess import shlex -import ntpath -import telnetlib -import time -import re import asyncio -from gns3server.config import Config - from .qemu_error import QemuError from ..adapters.ethernet_adapter import EthernetAdapter from ..nios.nio_udp import NIO_UDP from ..base_vm import BaseVM -from ...utils.asyncio import subprocess_check_output from ...schemas.qemu import QEMU_OBJECT_SCHEMA import logging diff --git a/gns3server/schemas/iou.py b/gns3server/schemas/iou.py index e495af5e..9a19c229 100644 --- a/gns3server/schemas/iou.py +++ b/gns3server/schemas/iou.py @@ -288,12 +288,7 @@ IOU_INITIAL_CONFIG_SCHEMA = { "type": ["string", "null"], "minLength": 1, }, - "path": { - "description": "Relative path on the server of the initial configuration file", - "type": ["string", "null"], - "minLength": 1, - }, }, "additionalProperties": False, - "required": ["content", "path"] + "required": ["content"] }