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