diff options
author | Thom May <thom@chef.io> | 2018-03-20 18:32:26 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2018-03-21 10:45:52 +0000 |
commit | 38f11a01425445c161f1dfd2c17ceacbaabf6341 (patch) | |
tree | f82f1fda08a5a7e5ba3ab90624a0433377153a06 /lib/chef/node.rb | |
parent | e2eaa3fdcd9a5e2f46d90f799eedcd86cc41eb6a (diff) | |
download | chef-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/node.rb')
-rw-r--r-- | lib/chef/node.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/node.rb b/lib/chef/node.rb index 496bfedc15..977c2d5e92 100644 --- a/lib/chef/node.rb +++ b/lib/chef/node.rb @@ -330,6 +330,7 @@ class Chef Chef::Log.debug("Platform is #{platform} version #{version}") automatic[:platform] = platform automatic[:platform_version] = version + automatic[:chef_guid] = Chef::Config[:chef_guid] automatic[:name] = name automatic[:chef_environment] = chef_environment end |