lib/chef/client.rb in chef-0.9.0 vs lib/chef/client.rb in chef-0.9.2
- old
+ new
@@ -127,11 +127,11 @@
end
def run_report_handlers(run_status)
Chef::Log.info("Running report handlers")
Array(Chef::Config[:report_handlers]).each do |handler|
- handler.run_report_safely(handler)
+ handler.run_report_safely(run_status)
end
Chef::Log.info("Report handlers complete")
end
def run_exception_handlers(run_status)
@@ -247,10 +247,10 @@
# were referred to by this cookbook
def sync_cookbook_file_cache(cookbook, valid_cache_entries)
Chef::Log.debug("Synchronizing cookbook #{cookbook.name}")
# files and templates are lazily loaded, and will be done later.
- eager_segments = Array(Chef::CookbookVersion::COOKBOOK_SEGMENTS)
+ eager_segments = Chef::CookbookVersion::COOKBOOK_SEGMENTS.dup
eager_segments.delete(:files)
eager_segments.delete(:templates)
eager_segments.each do |segment|
segment_filenames = Array.new