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] if options[:install]
arguments << "install" arguments << "install"
arguments << "--clean" if options[:clean]
elsif options[:update] elsif options[:update]
arguments << "update" arguments << "update"
arguments << options[:update] arguments << options[:update]
elsif options[:clean]
arguments << "clean"
end end
arguments << "--clean" if options[:clean]
arguments.flatten arguments.flatten
end end
end end