summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@chef.io>2019-11-12 13:41:21 -0800
committerGitHub <noreply@github.com>2019-11-12 13:41:21 -0800
commitd5f47992c22fd7b14d0ca8f73d5bf434d38afab3 (patch)
treefbe82e333708f33a5a3b8c176b2fb39642a3ebcc
parent9cf5678e5a6a1400d0ccad1f2c29aa258ffdfedf (diff)
parentcc299cf636c1281745d08822caf7405c7b8deefe (diff)
downloadchef-d5f47992c22fd7b14d0ca8f73d5bf434d38afab3.tar.gz
Fix action collection nilclass error early in runs (#9083)
Fix action collection nilclass error early in runs
-rw-r--r--lib/chef/resource_reporter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource_reporter.rb b/lib/chef/resource_reporter.rb
index bbb4fa2e83..246b2d5500 100644
--- a/lib/chef/resource_reporter.rb
+++ b/lib/chef/resource_reporter.rb
@@ -183,7 +183,7 @@ class Chef
# get only the top level resources and strip out the subcollections
def updated_resources
- @updated_resources ||= action_collection.filtered_collection(max_nesting: 0, up_to_date: false, skipped: false, unprocessed: false)
+ @updated_resources ||= action_collection&.filtered_collection(max_nesting: 0, up_to_date: false, skipped: false, unprocessed: false) || {}
end
def total_res_count