From 7c07d0b4bd48bea56dba110f0523c08b0b0cd562 Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 12 Jul 2019 11:32:55 +0200 Subject: [PATCH] Add missing default values in Cloud schema. --- gns3server/schemas/cloud_template.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gns3server/schemas/cloud_template.py b/gns3server/schemas/cloud_template.py index 6e340ab2..b6840074 100644 --- a/gns3server/schemas/cloud_template.py +++ b/gns3server/schemas/cloud_template.py @@ -23,7 +23,8 @@ from .port import PORT_OBJECT_SCHEMA CLOUD_TEMPLATE_PROPERTIES = { "ports_mapping": { "type": "array", - "items": [PORT_OBJECT_SCHEMA] + "items": [PORT_OBJECT_SCHEMA], + "default": [] }, "remote_console_host": { "description": "Remote console host or IP", @@ -40,7 +41,8 @@ CLOUD_TEMPLATE_PROPERTIES = { }, "remote_console_type": { "description": "Console type", - "enum": ["telnet", "vnc", "spice", "http", "https", "none"] + "enum": ["telnet", "vnc", "spice", "http", "https", "none"], + "default": "none" }, "remote_console_http_path": { "description": "Path of the remote web interface",