summaryrefslogtreecommitdiff
path: root/lib/chef/data_collector.rb
diff options
context:
space:
mode:
authorMarc Chamberland <mchamberland@pbsc.com>2019-05-05 18:55:51 -0400
committerMarc Chamberland <mchamberland@pbsc.com>2019-05-23 12:29:44 -0400
commit44aae2c29d0c4ba28b4dbfc8c638036d8a2663ec (patch)
tree1b1c1aff271923af23e987f36f98183ba20a59c9 /lib/chef/data_collector.rb
parentf5de2c58ea3705a20a6784251a3cd8a58618f24d (diff)
downloadchef-44aae2c29d0c4ba28b4dbfc8c638036d8a2663ec.tar.gz
distro constants for solo, zero and automate
Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
Diffstat (limited to 'lib/chef/data_collector.rb')
-rw-r--r--lib/chef/data_collector.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/data_collector.rb b/lib/chef/data_collector.rb
index eb349be928..677dc99faf 100644
--- a/lib/chef/data_collector.rb
+++ b/lib/chef/data_collector.rb
@@ -192,7 +192,7 @@ class Chef
raise
else
# Make the message non-scary for folks who don't have automate:
- msg << " (This is normal if you do not have Chef Automate)"
+ msg << " (This is normal if you do not have #{Chef::Dist::AUTOMATE})"
Chef::Log.info(msg)
end
end
@@ -312,7 +312,7 @@ class Chef
return true
when running_mode == :solo && !Chef::Config[:data_collector][:token]
# we are in solo mode and are not logging to a file, so must have a token
- Chef::Log.trace("Data collector token must be configured to use Chef Automate data collector with #{Chef::Dist::PRODUCT} Solo")
+ Chef::Log.trace("Data collector token must be configured to use #{Chef::Dist::AUTOMATE} data collector with #{Chef::Dist::SOLO}")
return false
else
return true