Fix if fluentd is not installed

This commit is contained in:
uu59 2014-07-18 13:58:30 +09:00
parent b9e4bd7af8
commit 998eb6acf3

View File

@ -190,7 +190,8 @@ class Plugin
end
def fluent_gem_path
if Fluentd.instance.fluentd?
# On installed both td-agent and fluentd system, decide which fluent-gem command should be used depend on setup(Fluentd.instance)
if Fluentd.instance && Fluentd.instance.fluentd?
return "fluent-gem" # maybe `fluent-gem` command is in the $PATH
end