summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Chamberland <chamberland.marc@gmail.com>2019-11-20 01:11:03 -0500
committerMarc Chamberland <chamberland.marc@gmail.com>2019-11-20 01:13:04 -0500
commit5a589a8843d638331daaa4d11b877bce0b78fee0 (patch)
tree2655dc74c7ee9254d3d374531229796e11c223b4
parent5d160ea2c26af935eb04a573d7a3f42962e4f569 (diff)
downloadchef-5a589a8843d638331daaa4d11b877bce0b78fee0.tar.gz
restoring correct value to windows event source
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com>
-rw-r--r--ext/win32-eventlog/Rakefile2
-rw-r--r--lib/chef/dist.rb4
2 files changed, 5 insertions, 1 deletions
diff --git a/ext/win32-eventlog/Rakefile b/ext/win32-eventlog/Rakefile
index e9f4c05811..2cf1a40896 100644
--- a/ext/win32-eventlog/Rakefile
+++ b/ext/win32-eventlog/Rakefile
@@ -51,7 +51,7 @@ task register: EVT_SHARED_OBJECT do
begin
Win32::EventLog.add_event_source(
source: "Application",
- key_name: Chef::Dist::PRODUCT,
+ key_name: Chef::Dist::SHORT,
event_message_file: dll_file,
category_message_file: dll_file
)
diff --git a/lib/chef/dist.rb b/lib/chef/dist.rb
index baf43c9127..fe17388940 100644
--- a/lib/chef/dist.rb
+++ b/lib/chef/dist.rb
@@ -4,6 +4,10 @@ class Chef
# When referencing a product directly, like Chef (Now Chef Infra)
PRODUCT = "Chef Infra Client".freeze
+ # A short designation for the product, used in Windows event logs
+ # and some nomenclature.
+ SHORT = "chef".freeze
+
# The name of the server product
SERVER_PRODUCT = "Chef Infra Server".freeze