From f2cf64326ada27c51e1bb0405dad2901e5f536d2 Mon Sep 17 00:00:00 2001 From: Philippe Weber Date: Tue, 24 May 2016 23:47:51 +0200 Subject: [PATCH] fix config_name for generated input plugin Fixes #5355 --- .../templates/input-plugin/lib/logstash/inputs/example.rb.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pluginmanager/templates/input-plugin/lib/logstash/inputs/example.rb.erb b/lib/pluginmanager/templates/input-plugin/lib/logstash/inputs/example.rb.erb index 5a7707c4717..176467ccb5c 100644 --- a/lib/pluginmanager/templates/input-plugin/lib/logstash/inputs/example.rb.erb +++ b/lib/pluginmanager/templates/input-plugin/lib/logstash/inputs/example.rb.erb @@ -9,7 +9,7 @@ require "socket" # for Socket.gethostname # This plugin is intented only as an example. class LogStash::Inputs::<%= classify(plugin_name) %> < LogStash::Inputs::Base - config_name "<%= @lugin_name %>" + config_name "<%= @plugin_name %>" # If undefined, Logstash will complain, even if codec is unused. default :codec, "plain"