# File lib/chef/provider/user.rb, line 171
      def action_lock
        if check_lock() == false
          converge_by("lock the user #{@new_resource}") do
            lock_user
            Chef::Log.info("#{@new_resource} locked")
          end
         else
          Chef::Log.debug("#{@new_resource} already locked - nothing to do")
        end
      end