Skip to content

Commit

Permalink
ingest: don't render template twice for append processor
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Aug 26, 2016
1 parent 22242ec commit 48926b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public AppendProcessor create(Map<String, Processor.Factory> registry, String pr
Object value = ConfigurationUtils.readObject(TYPE, processorTag, config, "value");
TemplateService.Template compiledTemplate = ConfigurationUtils.compileTemplate(TYPE, processorTag,
"field", field, templateService);
return new AppendProcessor(processorTag, templateService.compile(field), ValueSource.wrap(value, templateService));
return new AppendProcessor(processorTag, compiledTemplate, ValueSource.wrap(value, templateService));
}
}
}

0 comments on commit 48926b4

Please sign in to comment.