mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 14:31:13 +02:00
Validation schema for qemu-img
This commit is contained in:
1 parent
1eecae2027
commit
78ef6e3032
2 files changed
+68
-2
No files matched your search
@@ -27,6 +27,7 @@ from ...schemas.qemu import QEMU_UPDATE_SCHEMA
|
||||
from ...schemas.qemu import QEMU_OBJECT_SCHEMA
|
||||
from ...schemas.qemu import QEMU_BINARY_LIST_SCHEMA
|
||||
from ...schemas.qemu import QEMU_LIST_IMAGES_SCHEMA
|
||||
from ...schemas.qemu import QEMU_IMAGE_CREATE_SCHEMA
|
||||
from ...modules.qemu import Qemu
|
||||
from ...config import Config
|
||||
|
||||
@@ -325,7 +326,8 @@ class QEMUHandler:
|
||||
status_codes={
|
||||
201: "Image created",
|
||||
},
|
||||
description="Create a Qemu image"
|
||||
description="Create a Qemu image",
|
||||
input=QEMU_IMAGE_CREATE_SCHEMA
|
||||
)
|
||||
def create_img(request, response):
|
||||
|
||||
|
||||
Reference in new issue
Block a user