mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Fix the same array path bug in the collectd input plugin (soon to be deprecated).
This commit is contained in:
parent
f1397c37f8
commit
5b793bb4f6
1 changed files with 1 additions and 0 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue