From c350cb358bd65402371c6926e3aa44ff6621d031 Mon Sep 17 00:00:00 2001 From: Michael Ballantyne Date: Tue, 18 Jun 2013 14:07:06 -0600 Subject: [PATCH] use collectd settings in plugin template --- templates/default/plugin.conf.erb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/templates/default/plugin.conf.erb b/templates/default/plugin.conf.erb index ac5a824..40d58ad 100644 --- a/templates/default/plugin.conf.erb +++ b/templates/default/plugin.conf.erb @@ -4,12 +4,6 @@ LoadPlugin "<%= @name %>" <% if not @options.empty? %> "> - <% @options.each_pair do |key, value| - if value.is_a? Array - value.each do |subvalue| %> - <%= collectd_key(key) %> <%= collectd_option(subvalue) %> - <% end else %> - <%= collectd_key(key) %> <%= collectd_option(value) %> - <% end end %> +<%= collectd_settings(@options, 1) %> <% end %>