Skip to content

Commit

Permalink
[FIX] Fixed incorrect behaviour when merging elasticsearch.plugins
Browse files Browse the repository at this point in the history
…from databag with default plugins

Closes #150
  • Loading branch information
NickPadilla authored and karmi committed Oct 24, 2013
1 parent 42db58c commit 711cd97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions attributes/plugins.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

plugins = Chef::DataBagItem.load('elasticsearch', 'plugins')[node.chef_environment].to_hash['plugins'] rescue {}

Chef::Log.debug "Plugins list: #{plugins.keys.inspect}"

node.default.elasticsearch[:plugins] ||= plugins
node.default.elasticsearch[:plugins].merge!(plugins)
node.default.elasticsearch[:plugin][:mandatory] = []

Chef::Log.debug "Plugins list: #{default.elasticsearch.plugins.inspect}"

0 comments on commit 711cd97

Please sign in to comment.