diff options
Diffstat (limited to 'lib/chef/data_collector/messages.rb')
-rw-r--r-- | lib/chef/data_collector/messages.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/data_collector/messages.rb b/lib/chef/data_collector/messages.rb index b6114a8bec..e23262c9e4 100644 --- a/lib/chef/data_collector/messages.rb +++ b/lib/chef/data_collector/messages.rb @@ -70,15 +70,15 @@ class Chef "message_type" => "run_converge", "node_name" => run_status.node.name, "organization_name" => organization, - "resources" => reporter_data[:updated_resources].map(&:for_json), + "resources" => reporter_data[:completed_resources].map(&:for_json), "run_id" => run_status.run_id, "run_list" => run_status.node.run_list.for_json, "start_time" => run_status.start_time.utc.iso8601, "end_time" => run_status.end_time.utc.iso8601, "source" => collector_source, "status" => reporter_data[:status], - "total_resource_count" => reporter_data[:total_resource_count], - "updated_resource_count" => reporter_data[:updated_resources].count, + "total_resource_count" => reporter_data[:completed_resources].count, + "updated_resource_count" => reporter_data[:completed_resources].select { |r| r.status == "updated" }.count, } message["error"] = { |