diff options
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) |