1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-11 01:28:09 +00:00

Fixes old projects loading issue with Qemu.

This commit is contained in:
Jeremy 2015-03-02 14:37:48 -07:00
parent 466c6142af
commit 7ace6fc7e9

View File

@ -22,9 +22,14 @@ QEMU_CREATE_SCHEMA = {
"type": "object", "type": "object",
"properties": { "properties": {
"vm_id": { "vm_id": {
"description": "QEMU VM UUID", "description": "QEMU VM identifier",
"type": ["string", "null"], "oneOf": [
"minLength": 1, {"type": "string",
"minLength": 36,
"maxLength": 36,
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"},
{"type": "integer"} # for legacy projects
]
}, },
"name": { "name": {
"description": "QEMU VM instance name", "description": "QEMU VM instance name",