diff --git a/app/models/fluentd/agent/local_common.rb b/app/models/fluentd/agent/local_common.rb index 85e0aeb..5a98569 100644 --- a/app/models/fluentd/agent/local_common.rb +++ b/app/models/fluentd/agent/local_common.rb @@ -82,9 +82,9 @@ class Fluentd private - def exec_dryrun(exe, file_path = nil) + def exec_dryrun(command, file_path = nil) Bundler.with_clean_env do - system("#{exe} -q --dry-run #{options_to_argv(config_file: file_path)}", out: File::NULL, err: File::NULL) + system("#{command} -q --dry-run #{options_to_argv(config_file: file_path)}", out: File::NULL, err: File::NULL) raise ::Fluentd::Agent::ConfigError, last_error_message unless $?.exitstatus.zero? end end