1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-23 23:38:21 +00:00

Bit of cleaning.

This commit is contained in:
Jeremy 2015-02-22 19:56:52 -07:00
parent da11343647
commit 210aa6f12a
3 changed files with 1 additions and 14 deletions

View File

@ -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)

View File

@ -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

View File

@ -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"]
}