# File lib/chef/provider/user.rb, line 144 def action_lock if @user_exists if check_lock() == false lock_user @new_resource.updated_by_last_action(true) Chef::Log.info("#{@new_resource} locked") else Chef::Log.debug("#{@new_resource} already locked - nothing to do") end else raise Chef::Exceptions::User, "Cannot lock user - does not exist!" end end