mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-06 11:26:10 +02:00
Fix to write config file via Fleuntd::Agent
This commit is contained in:
parent
0786fafb9b
commit
7ec6c1b9fd
@ -28,7 +28,8 @@ class Fluentd
|
||||
end
|
||||
|
||||
def write_to_file
|
||||
File.open(file, "w"){|f| f.write formatted }
|
||||
return unless Fluentd.instance
|
||||
Fluentd.instance.agent.config_write formatted
|
||||
end
|
||||
|
||||
def formatted
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user