mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
- only do string conversion on symbols (config :some_symbol).
This keeps support for regexp configs until I finally remove that.
This commit is contained in:
parent
4f70986f39
commit
d2649ce139
1 changed files with 5 additions and 1 deletions
|
@ -72,8 +72,12 @@ class LogStashConfigDocGenerator
|
||||||
# This will let us align comments with config options.
|
# This will let us align comments with config options.
|
||||||
name, opts = eval(code)
|
name, opts = eval(code)
|
||||||
|
|
||||||
|
# TODO(sissel): This hack is only required until regexp configs
|
||||||
|
# are gone from logstash.
|
||||||
|
name = name.to_s unless name.is_a?(Regexp)
|
||||||
|
|
||||||
description = BlueCloth.new(@comments.join("\n")).to_html
|
description = BlueCloth.new(@comments.join("\n")).to_html
|
||||||
@attributes[name.to_s][:description] = description
|
@attributes[name][:description] = description
|
||||||
clear_comments
|
clear_comments
|
||||||
end # def add_config
|
end # def add_config
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue