diff options
author | Marc Chamberland <mchamberland@pbsc.com> | 2019-04-06 19:16:22 -0400 |
---|---|---|
committer | Marc Chamberland <mchamberland@pbsc.com> | 2019-04-19 19:02:35 -0400 |
commit | 33d1f9e3ad1013387a3b3a53d6969c905942b692 (patch) | |
tree | ff8ed416f691478e046a65210040311a6608d985 /lib/chef/client.rb | |
parent | f1a97f33d4b67645ed55ce6e15274d6adf396670 (diff) | |
download | chef-33d1f9e3ad1013387a3b3a53d6969c905942b692.tar.gz |
Replacing workmarks with distro constants
Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
Diffstat (limited to 'lib/chef/client.rb')
-rw-r--r-- | lib/chef/client.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb index 40266df64d..0c4acc0a8d 100644 --- a/lib/chef/client.rb +++ b/lib/chef/client.rb @@ -54,6 +54,7 @@ require "chef/platform/rebooter" require "chef/mixin/deprecation" require "ohai" require "rbconfig" +require "chef/dist" class Chef # == Chef::Client @@ -240,10 +241,10 @@ class Chef events.run_start(Chef::VERSION, run_status) - logger.info("*** Chef #{Chef::VERSION} ***") + logger.info("*** #{Chef::Dist::PRODUCT} #{Chef::VERSION} ***") logger.info("Platform: #{RUBY_PLATFORM}") - logger.info "Chef-client pid: #{Process.pid}" - logger.debug("Chef-client request_id: #{request_id}") + logger.info "#{Chef::Dist::CLIENT.capitalize} pid: #{Process.pid}" + logger.debug("#{Chef::Dist::CLIENT.capitalize} request_id: #{request_id}") enforce_path_sanity run_ohai @@ -262,7 +263,7 @@ class Chef build_node run_status.start_clock - logger.info("Starting Chef Run for #{node.name}") + logger.info("Starting #{Chef::Dist::PRODUCT} Run for #{node.name}") run_started do_windows_admin_check @@ -277,7 +278,7 @@ class Chef converge_and_save(run_context) run_status.stop_clock - logger.info("Chef Run complete in #{run_status.elapsed_time} seconds") + logger.info("#{Chef::Dist::PRODUCT} Run complete in #{run_status.elapsed_time} seconds") run_completed_successfully events.run_completed(node, run_status) @@ -715,7 +716,7 @@ class Chef logger.trace("Checking for administrator privileges....") if !has_admin_privileges? - message = "chef-client doesn't have administrator privileges on node #{node_name}." + message = "#{Chef::Dist::CLIENT} doesn't have administrator privileges on node #{node_name}." if Chef::Config[:fatal_windows_admin_check] logger.fatal(message) logger.fatal("fatal_windows_admin_check is set to TRUE.") @@ -724,7 +725,7 @@ class Chef logger.warn("#{message} This might cause unexpected resource failures.") end else - logger.trace("chef-client has administrator privileges on node #{node_name}.") + logger.trace("#{Chef::Dist::CLIENT} has administrator privileges on node #{node_name}.") end end end |