mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 02:46:11 +02:00
Fix plugin setting page with errors
This commit is contained in:
parent
a6b5c8e7d9
commit
4bc6743841
@ -16,14 +16,14 @@ module SettingConcern
|
||||
def finish
|
||||
@setting = target_class.new(setting_params)
|
||||
unless @setting.valid?
|
||||
return render "show"
|
||||
return render "shared/settings/show"
|
||||
end
|
||||
|
||||
@fluentd.agent.config_append @setting.to_config
|
||||
if @fluentd.agent.running?
|
||||
unless @fluentd.agent.restart
|
||||
@setting.errors.add(:base, @fluentd.agent.log_tail(1).first)
|
||||
return render "show"
|
||||
return render "shared/settings/show"
|
||||
end
|
||||
end
|
||||
redirect_to daemon_setting_path(@fluentd)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user