Fix the same array path bug in the collectd input plugin (soon to be deprecated).

This commit is contained in:
Aaron Mildenstein 2014-05-02 13:46:49 -05:00
parent f1397c37f8
commit 5b793bb4f6

View file

@ -157,6 +157,7 @@ class LogStash::Inputs::Collectd < LogStash::Inputs::Base
public
def get_types(paths)
# Get the typesdb
paths = Array(paths) # Make sure a single path is still forced into an array type
paths.each do |path|
@logger.info("Getting Collectd typesdb info", :typesdb => path.to_s)
File.open(path, 'r').each_line do |line|