From ea01282eb64be09ca41a276891de332cd692e4f1 Mon Sep 17 00:00:00 2001 From: HANA-DA Hiromitsu Date: Thu, 21 Jun 2018 15:18:57 +0900 Subject: [PATCH] Fix Parser plugin template for fluent-plugin-generate Signed-off-by: HANA-DA Hiromitsu --- templates/new_gem/lib/fluent/plugin/parser.rb.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/new_gem/lib/fluent/plugin/parser.rb.erb b/templates/new_gem/lib/fluent/plugin/parser.rb.erb index 52c10285ab..6c506a0e42 100644 --- a/templates/new_gem/lib/fluent/plugin/parser.rb.erb +++ b/templates/new_gem/lib/fluent/plugin/parser.rb.erb @@ -6,10 +6,10 @@ module Fluent module Plugin class <%= class_name %> < Fluent::Plugin::Parser Fluent::Plugin.register_parser("<%= plugin_name %>", self) - end - def parse(text) - yield time, record + def parse(text) + yield time, record + end end end end