diff options
Diffstat (limited to 'lib/chef/chef_fs/data_handler/cookbook_data_handler.rb')
-rw-r--r-- | lib/chef/chef_fs/data_handler/cookbook_data_handler.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/chef_fs/data_handler/cookbook_data_handler.rb b/lib/chef/chef_fs/data_handler/cookbook_data_handler.rb index 156c1eef4e..ee1480c62e 100644 --- a/lib/chef/chef_fs/data_handler/cookbook_data_handler.rb +++ b/lib/chef/chef_fs/data_handler/cookbook_data_handler.rb @@ -1,5 +1,5 @@ -require "chef/chef_fs/data_handler/data_handler_base" -require "chef/cookbook/metadata" +require_relative "data_handler_base" +require_relative "../../cookbook/metadata" class Chef module ChefFS @@ -24,7 +24,7 @@ class Chef end def preserve_key?(key) - return key == "cookbook_name" || key == "version" + %w{cookbook_name version}.include?(key) end def chef_class |