summaryrefslogtreecommitdiff
path: root/lib/chef/data_collector
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2018-03-20 18:32:26 +0000
committerThom May <thom@chef.io>2018-03-21 10:45:52 +0000
commit38f11a01425445c161f1dfd2c17ceacbaabf6341 (patch)
treef82f1fda08a5a7e5ba3ab90624a0433377153a06 /lib/chef/data_collector
parente2eaa3fdcd9a5e2f46d90f799eedcd86cc41eb6a (diff)
downloadchef-38f11a01425445c161f1dfd2c17ceacbaabf6341.tar.gz
Save the node's UUID as an attributetm/chef_guid
We generate the UUID as part of the data collector report, but we didn't make that available to the node or the chef server otherwise. Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'lib/chef/data_collector')
-rw-r--r--lib/chef/data_collector/messages/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/data_collector/messages/helpers.rb b/lib/chef/data_collector/messages/helpers.rb
index e451db2c63..e4eda5ebb2 100644
--- a/lib/chef/data_collector/messages/helpers.rb
+++ b/lib/chef/data_collector/messages/helpers.rb
@@ -106,7 +106,7 @@ class Chef
# @return [String] UUID for the node
#
def node_uuid
- read_node_uuid || generate_node_uuid
+ Chef::Config[:chef_guid] || read_node_uuid || generate_node_uuid
end
#