From f416d7ba961edddfd956b556ed6566bf48824bf5 Mon Sep 17 00:00:00 2001 From: shangxdy Date: Fri, 1 Sep 2017 15:16:00 +0800 Subject: Support version of tosca_simple_yaml_1_1 Currently tosca-parser only support tosca_version_1_0, this patch will enable it to support tosca_version_1_1. This requirement is from ONAP, but not need to submit to OpenStack currently JIRA:PARSER-146 Change-Id: If1bc470e3f2d18a606b312425241f27be33b65b4 Signed-off-by: shangxdy --- tosca2heat/tosca-parser/toscaparser/elements/tosca_type_validation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tosca2heat/tosca-parser/toscaparser/elements') diff --git a/tosca2heat/tosca-parser/toscaparser/elements/tosca_type_validation.py b/tosca2heat/tosca-parser/toscaparser/elements/tosca_type_validation.py index 45b924b..89a6a03 100644 --- a/tosca2heat/tosca-parser/toscaparser/elements/tosca_type_validation.py +++ b/tosca2heat/tosca-parser/toscaparser/elements/tosca_type_validation.py @@ -29,7 +29,8 @@ class TypeValidation(object): 'data_types', 'artifact_types', 'group_types', 'relationship_types', 'capability_types', 'interface_types', 'policy_types', 'topology_template', 'metadata') - VALID_TEMPLATE_VERSIONS = ['tosca_simple_yaml_1_0'] + VALID_TEMPLATE_VERSIONS = ['tosca_simple_yaml_1_0', + 'tosca_simple_yaml_1_1'] exttools = ExtTools() VALID_TEMPLATE_VERSIONS.extend(exttools.get_versions()) -- cgit 1.2.3-korg