correctly support :clean option

Fixes #2703
This commit is contained in:
Colin Surprenant 2015-02-26 17:57:07 -05:00 committed by Jordan Sissel
parent 4edbf5d32b
commit 001c609179

View file

@ -96,13 +96,14 @@ module LogStash
if options[:install]
arguments << "install"
arguments << "--clean" if options[:clean]
elsif options[:update]
arguments << "update"
arguments << options[:update]
elsif options[:clean]
arguments << "clean"
end
arguments << "--clean" if options[:clean]
arguments.flatten
end
end