diff options
author | Lamont Granquist <lamont@chef.io> | 2019-11-12 13:41:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-12 13:41:21 -0800 |
commit | d5f47992c22fd7b14d0ca8f73d5bf434d38afab3 (patch) | |
tree | fbe82e333708f33a5a3b8c176b2fb39642a3ebcc | |
parent | 9cf5678e5a6a1400d0ccad1f2c29aa258ffdfedf (diff) | |
parent | cc299cf636c1281745d08822caf7405c7b8deefe (diff) | |
download | chef-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.rb | 2 |
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 |