diff options
Diffstat (limited to 'lib/chef/mixin/user_context.rb')
-rw-r--r-- | lib/chef/mixin/user_context.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/mixin/user_context.rb b/lib/chef/mixin/user_context.rb index f5c2da1389..92003937c5 100644 --- a/lib/chef/mixin/user_context.rb +++ b/lib/chef/mixin/user_context.rb @@ -16,7 +16,7 @@ # limitations under the License. # -require "chef/util/windows/logon_session" if Chef::Platform.windows? +require "chef/util/windows/logon_session" if ChefHelpers.windows? class Chef module Mixin @@ -26,7 +26,7 @@ class Chef # When authentication = :local, we use the credentials to create a logon session against the local system, and then try to access the files. # When authentication = :remote, we continue with the current user but pass the provided credentials to the remote system. def with_user_context(user, password, domain = nil, authentication = :remote, &block) - unless Chef::Platform.windows? + unless ChefHelpers.windows? raise Exceptions::UnsupportedPlatform, "User context impersonation is supported only on the Windows platform" end |