Skip to content

Commit

Permalink
fix Style/WordArray and Layout/IndentationConsistency issues
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Asuncion <jeunito@gmail.com>
  • Loading branch information
jeunito committed Dec 7, 2018
1 parent 671b1dd commit 3c418f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/chef-vault/item_keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ def save(item_id = @raw_data["id"])
end
end

if @raw_data["mode"] == "sparse"
@raw_data.keys.each do |key, val|
next if [ "id", "clients", "admins", "search_query", "mode" ].include?(key)
if @raw_data["mode"] == "sparse"
@raw_data.keys.each do |key, val|
next if %w[ id clients admins search_query mode ].include?(key)
@raw_data.delete(key)
skey = Chef::DataBagItem.from_hash(
"data_bag" => data_bag,
"id" => sparse_id(key),
key => val
)
)

if Chef::Config[:solo_legacy_mode]
save_solo(skey.id, skey.raw_data)
Expand Down

0 comments on commit 3c418f5

Please sign in to comment.