From d562f43cb7d4d733694630c1d0591d7f17e73302 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Thu, 28 May 2020 13:29:33 -0700 Subject: hostname: Improve the windows reboot message Make sure this works in cinc Signed-off-by: Tim Smith --- lib/chef/resource/hostname.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/chef/resource/hostname.rb b/lib/chef/resource/hostname.rb index ed6b642769..7329dd34bf 100644 --- a/lib/chef/resource/hostname.rb +++ b/lib/chef/resource/hostname.rb @@ -13,6 +13,7 @@ # require_relative "../resource" +require_relative "../dist" class Chef class Resource @@ -245,7 +246,7 @@ class Chef # reboot because $windows declare_resource(:reboot, "setting hostname") do - reason "chef setting hostname" + reason "#{Chef::Dist::PRODUCT} updated system hostname" action :nothing only_if { new_resource.windows_reboot } end -- cgit v1.2.1