lib/chef-api/resources/data_bag.rb in chef-api-0.2.0 vs lib/chef-api/resources/data_bag.rb in chef-api-0.2.1

- old
+ new

@@ -45,10 +45,10 @@ # def fetch(id, prefix = {}) return nil if id.nil? path = resource_path(id, prefix) - response = ChefAPI.connection.get(path) + response = connection.get(path) new(name: id) rescue Error::HTTPNotFound nil end