diff options
author | Thom May <thom@chef.io> | 2016-02-09 11:20:56 -0800 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-02-15 12:32:06 +0000 |
commit | 8eae0cc429b1ad2f569e611202051a1bddbe142a (patch) | |
tree | 9f3ec8fc4331a69825e8acb8d298a3cd74fdea65 /lib/chef/knife.rb | |
parent | a030711a57e126f58b2e897c915d430e67cb7d13 (diff) | |
download | chef-8eae0cc429b1ad2f569e611202051a1bddbe142a.tar.gz |
Be way more explicit about how we're handling datatm/missed_migration
This just codifies the behaviour we're actually using - that we're
passing a json string and expecting a hash back.
Also adds a deprecation warning to the use of Chef::JSONCompat.from_json
Diffstat (limited to 'lib/chef/knife.rb')
-rw-r--r-- | lib/chef/knife.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb index fb43f8721b..657216bcf0 100644 --- a/lib/chef/knife.rb +++ b/lib/chef/knife.rb @@ -510,8 +510,8 @@ class Chef response.body end - def create_object(object, pretty_name = nil, &block) - output = edit_data(object) + def create_object(object, pretty_name = nil, object_class: nil, &block) + output = edit_data(object, object_class: object_class) if Kernel.block_given? output = block.call(output) |