summaryrefslogtreecommitdiff
path: root/lib/chef/data_collector/messages/helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/data_collector/messages/helpers.rb')
-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
#