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