Skip to content

Commit

Permalink
use deep merge for machine() add_machine_options, addresses
Browse files Browse the repository at this point in the history
bootstrap_options merge failure in chef-boneyard#455
  • Loading branch information
keen99 committed Sep 30, 2015
1 parent d8cbf5d commit 0a99013
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/chef/resource/machine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ def file(remote_path, local = nil)
end

def add_machine_options(options)
@machine_options = Cheffish::MergedConfig.new(options, @machine_options)
@machine_options = Chef::Mixin::DeepMerge.hash_only_merge(options, @machine_options)
end


# This is here because provisioning users will probably want to do things like:
# machine "foo"
# action :destroy
Expand Down

0 comments on commit 0a99013

Please sign in to comment.