changed working

Fixes #2739
This commit is contained in:
Colin Surprenant 2015-03-02 18:00:56 -05:00 committed by Jordan Sissel
parent 1254573a43
commit 1ccfd1cf0f

View file

@ -21,7 +21,7 @@ class LogStash::PluginManager::Update < Clamp::Command
# create list of plugins to update
plugins = unless plugin_list.empty?
not_installed = plugin_list.select{|plugin| !previous_gem_specs_map.has_key?(plugin.downcase)}
raise(LogStash::PluginManager::Error, "Plugin #{not_installed.join(', ')} has not been previously installed, aborting") unless not_installed.empty?
raise(LogStash::PluginManager::Error, "Plugin #{not_installed.join(', ')} is not installed so it cannot be updated, aborting") unless not_installed.empty?
plugin_list
else
previous_gem_specs_map.values.map{|spec| spec.name}