diff --git a/app/models/job_template.rb b/app/models/job_template.rb index 60d9f59db..818d10d99 100644 --- a/app/models/job_template.rb +++ b/app/models/job_template.rb @@ -64,6 +64,7 @@ def base_class # will overwrite (sync) an existing template if options[:update] is true. def import_raw(contents, options = {}) metadata = Template.parse_metadata(contents) + return unless SeedHelper.test_template_requirements(metadata['name'], metadata['require'] || []) import_parsed(metadata['name'], contents, metadata, options) end