diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-05-28 13:29:33 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-05-28 17:14:55 -0700 |
commit | b6e9162f84c0f32c8cea244a7e8c24e1194c097f (patch) | |
tree | b5d3fae210947fee13765fe712dc3996f1e06e69 | |
parent | 4669d57469dff2257995591a45dd17eeb0401832 (diff) | |
download | chef-b6e9162f84c0f32c8cea244a7e8c24e1194c097f.tar.gz |
hostname: Improve the windows reboot messagehostname_reboot
Make sure this works in cinc
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/hostname.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/resource/hostname.rb b/lib/chef/resource/hostname.rb index 2d9b18b42d..f096b0e881 100644 --- a/lib/chef/resource/hostname.rb +++ b/lib/chef/resource/hostname.rb @@ -16,6 +16,7 @@ # require_relative "../resource" +require_relative "../dist" class Chef class Resource @@ -248,7 +249,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 |