From 3281d1dc58fda8bd2cf1e42d01ab9b0f268cd845 Mon Sep 17 00:00:00 2001 From: Vitaly Gridnev Date: Thu, 30 Jul 2015 01:34:41 +0300 Subject: [PATCH] Put missing fields to validation schema Field use_autoconfig is missing in the cluster templates and node groups validation schema, so it should be added. Change-Id: Idaf25374dc0a668d413a852c001cc36ec2313afd Closes-bug: 1479035 --- sahara/service/validations/cluster_template_schema.py | 5 ++++- sahara/service/validations/node_group_template_schema.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sahara/service/validations/cluster_template_schema.py b/sahara/service/validations/cluster_template_schema.py index 8fd7670f..7dd8f1a4 100644 --- a/sahara/service/validations/cluster_template_schema.py +++ b/sahara/service/validations/cluster_template_schema.py @@ -90,7 +90,10 @@ CLUSTER_TEMPLATE_SCHEMA = { "type": ["string", "null"], "format": "uuid" }, - "shares": copy.deepcopy(shares.SHARE_SCHEMA) + "shares": copy.deepcopy(shares.SHARE_SCHEMA), + "use_autoconfig": { + "type": ["boolean", "null"], + } }, "additionalProperties": False, "required": [ diff --git a/sahara/service/validations/node_group_template_schema.py b/sahara/service/validations/node_group_template_schema.py index dae3c336..89d21765 100644 --- a/sahara/service/validations/node_group_template_schema.py +++ b/sahara/service/validations/node_group_template_schema.py @@ -89,7 +89,10 @@ NODE_GROUP_TEMPLATE_SCHEMA = { "volume_local_to_instance": { "type": ["boolean", "null"] }, - "shares": copy.deepcopy(shares.SHARE_SCHEMA) + "shares": copy.deepcopy(shares.SHARE_SCHEMA), + "use_autoconfig": { + "type": ["boolean", "null"] + } }, "additionalProperties": False, "required": [