diff options
author | Josh Hudson <jhudson@chef.io> | 2017-03-30 14:01:15 -0600 |
---|---|---|
committer | Josh Hudson <jhudson@chef.io> | 2017-03-30 14:01:15 -0600 |
commit | 089eb5ede5b67bb9ea53356234e38eb716b4c523 (patch) | |
tree | a5bca37f7a87c63d935bc856315a1492ff0f6864 | |
parent | 2151e4f1563441fdacc07c16eaaa4273bb88931d (diff) | |
download | chef-089eb5ede5b67bb9ea53356234e38eb716b4c523.tar.gz |
Add policy_name and policy_group indexes to converge message sent to data-collector
Signed-off-by: Josh Hudson <jhudson@chef.io>
-rw-r--r-- | lib/chef/data_collector/messages.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/data_collector/messages.rb b/lib/chef/data_collector/messages.rb index c0683534a9..ff70d59f6d 100644 --- a/lib/chef/data_collector/messages.rb +++ b/lib/chef/data_collector/messages.rb @@ -73,6 +73,8 @@ class Chef "resources" => reporter_data[:resources].map(&:report_data), "run_id" => run_status.run_id, "run_list" => run_status.node.run_list.for_json, + "policy_name" => Chef::Config[:policy_name], + "policy_group" => Chef::Config[:policy_group], "start_time" => run_status.start_time.utc.iso8601, "end_time" => run_status.end_time.utc.iso8601, "source" => collector_source, |