From 74924a61a1fefe5e4977cd8d9edf7e5bbbb9f966 Mon Sep 17 00:00:00 2001 From: shangxdy Date: Wed, 29 Jun 2016 16:10:49 +0800 Subject: netsted template validate type error When import nested template, validate type error, in the validate list lack the type of "topology_template" Change-Id: Ic16e02f460dc59936dfc5a361a21b9533f0e5e83 JIRA: PARSER-58 Signed-off-by: shangxdy --- .../tosca-parser/toscaparser/elements/tosca_type_validation.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tosca2heat/tosca-parser/toscaparser/elements/tosca_type_validation.py') diff --git a/tosca2heat/tosca-parser/toscaparser/elements/tosca_type_validation.py b/tosca2heat/tosca-parser/toscaparser/elements/tosca_type_validation.py index 16764bc..82b0b46 100644 --- a/tosca2heat/tosca-parser/toscaparser/elements/tosca_type_validation.py +++ b/tosca2heat/tosca-parser/toscaparser/elements/tosca_type_validation.py @@ -22,12 +22,13 @@ class TypeValidation(object): DSL_DEFINITIONS, NODE_TYPES, REPOSITORIES, DATA_TYPES, ARTIFACT_TYPES, GROUP_TYPES, RELATIONSHIP_TYPES, CAPABILITY_TYPES, - INTERFACE_TYPES, POLICY_TYPES) = \ + INTERFACE_TYPES, POLICY_TYPES, + TOPOLOGY_TEMPLATE) = \ ('tosca_definitions_version', 'description', 'imports', 'dsl_definitions', 'node_types', 'repositories', 'data_types', 'artifact_types', 'group_types', 'relationship_types', 'capability_types', - 'interface_types', 'policy_types') + 'interface_types', 'policy_types', 'topology_template') VALID_TEMPLATE_VERSIONS = ['tosca_simple_yaml_1_0'] exttools = ExtTools() VALID_TEMPLATE_VERSIONS.extend(exttools.get_versions()) -- cgit 1.2.3-korg