diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-11-12 09:57:22 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-11-12 09:57:22 -0800 |
commit | cc299cf636c1281745d08822caf7405c7b8deefe (patch) | |
tree | 9a83f5795cdd6a9d0d320cce71bd1800859a67e1 | |
parent | ae5a9aabfc6e1eec5581c45c300fb4286304e97b (diff) | |
download | chef-cc299cf636c1281745d08822caf7405c7b8deefe.tar.gz |
Fix action collection nil error early in runs
closes #9043
closes #9038
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-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 |