Fluentd configuration is not XML

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-04-25 15:02:36 +09:00
parent ecd40a81f4
commit 2efebe3de0

View File

@ -101,7 +101,7 @@ class Fluentd
def to_conf
# NOTE: Using strip_heredoc makes more complex for format_specific_conf indent
<<-XML.gsub(/^[ ]*\n/m, "")
<<-CONFIG.gsub(/^[ ]*\n/m, "")
<source>
type tail
path #{path}
@ -114,7 +114,7 @@ class Fluentd
#{rotate_wait.present? ? "rotate_wait #{rotate_wait}" : ""}
#{refresh_interval.present? ? "refresh_interval #{refresh_interval}" : ""}
</source>
XML
CONFIG
end
end
end