diff options
author | Bryan McLellan <btm@loftninjas.org> | 2018-03-16 15:41:50 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2018-03-19 12:32:45 -0400 |
commit | baa3ba5c1ebb0276f009c9128f9b1a6b02f96777 (patch) | |
tree | e45d9ecb07e8aff5cda635802201bf8ac59eb3f0 /lib/chef/win32/security.rb | |
parent | e2eaa3fdcd9a5e2f46d90f799eedcd86cc41eb6a (diff) | |
download | chef-baa3ba5c1ebb0276f009c9128f9b1a6b02f96777.tar.gz |
Fix regression in #6980, add functional tests
The logging refactor in #6980 should have been a class variable. This fixes that.
Also adds functional tests that would catch that and the original #6980 bug.
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
Diffstat (limited to 'lib/chef/win32/security.rb')
-rw-r--r-- | lib/chef/win32/security.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/win32/security.rb b/lib/chef/win32/security.rb index f175511354..374d31e8a3 100644 --- a/lib/chef/win32/security.rb +++ b/lib/chef/win32/security.rb @@ -668,7 +668,7 @@ class Chef Token.new(Handle.new(token.read_pointer)) end - def test_and_raise_lsa_nt_status(result) + def self.test_and_raise_lsa_nt_status(result) win32_error = LsaNtStatusToWinError(result) if win32_error != 0 Chef::ReservedNames::Win32::Error.raise!(nil, win32_error) |