def _validate_version(self, version):
     if version not in self.VALID_TEMPLATE_VERSIONS:
         ExceptionCollector.appendException(
             InvalidTemplateVersion(what=version,
                                    valid_versions=', '.join(
                                        self.VALID_TEMPLATE_VERSIONS)))
     else:
         if version != 'tosca_simple_yaml_1_0':
             update_definitions(version)
 def _validate_version(self, version):
     if version not in self.VALID_TEMPLATE_VERSIONS:
         ExceptionCollector.appendException(
             InvalidTemplateVersion(
                 what=version,
                 valid_versions=', '. join(self.VALID_TEMPLATE_VERSIONS)))
     else:
         if version != 'tosca_simple_yaml_1_0':
             update_definitions(version)
Exemple #3
0
 def _validate_version(self, version):
     if version not in self.VALID_TEMPLATE_VERSIONS:
         ExceptionCollector.appendException(
             InvalidTemplateVersion(what=version,
                                    valid_versions='", "'.join(
                                        self.VALID_TEMPLATE_VERSIONS)))
     else:
         if version not in self.MAIN_TEMPLATE_VERSIONS:
             update_definitions(version)