summaryrefslogtreecommitdiff
path: root/lib/chef/config.rb
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2015-09-17 09:47:08 -0700
committerKartik Null Cating-Subramanian <ksubramanian@chef.io>2015-09-18 13:18:23 -0400
commit9703782bad3ddfad90b21ca5a225d4bd2e393f0d (patch)
treefff6a404d4be3764e5f50c95a1160b85dc452acc /lib/chef/config.rb
parent2cadf9cd40e4c19741121bf2df180941918107bb (diff)
downloadchef-9703782bad3ddfad90b21ca5a225d4bd2e393f0d.tar.gz
Don't add win_evt logger when on nano.
Diffstat (limited to 'lib/chef/config.rb')
-rw-r--r--lib/chef/config.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/config.rb b/lib/chef/config.rb
index 6382af14c2..a43985f691 100644
--- a/lib/chef/config.rb
+++ b/lib/chef/config.rb
@@ -55,7 +55,8 @@ class Chef
default :event_loggers do
evt_loggers = []
- if ChefConfig.windows? and not Chef::Platform.windows_server_2003?
+ if ChefConfig.windows? && !(Chef::Platform.windows_server_2003? ||
+ Chef::Platform.windows_nano_server?)
evt_loggers << :win_evt
end
evt_loggers