From 24de354c67305563f677080c03b8892c4a9e0fb1 Mon Sep 17 00:00:00 2001 From: nimisha Date: Fri, 24 Feb 2017 18:46:51 +0530 Subject: Fixing specs Signed-off-by: nimisha --- lib/chef/util/windows/logon_session.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/chef/util') diff --git a/lib/chef/util/windows/logon_session.rb b/lib/chef/util/windows/logon_session.rb index 6ef49e96a3..adabdbb3ef 100644 --- a/lib/chef/util/windows/logon_session.rb +++ b/lib/chef/util/windows/logon_session.rb @@ -40,7 +40,7 @@ class Chef def open if session_opened - raise RuntimeError, "Attempted to open a logon session that was already open." + raise "Attempted to open a logon session that was already open." end username = wstring(original_username) @@ -73,11 +73,11 @@ class Chef validate_session_open! if ! session_opened - raise RuntimeError, "Attempted to set the user context before opening a session." + raise "Attempted to set the user context before opening a session." end if impersonating - raise RuntimeError, "Attempt to set the user context when the user context is already set." + raise "Attempt to set the user context when the user context is already set." end status = Chef::ReservedNames::Win32::API::Security.ImpersonateLoggedOnUser(token.read_ulong) @@ -117,7 +117,7 @@ class Chef def validate_session_open! if ! session_opened - raise RuntimeError, "Attempted to set the user context before opening a session." + raise "Attempted to set the user context before opening a session." end end end -- cgit v1.2.1