'Unbans host corresponding to the ticket.
Executes the actions in order to unban the host given in the
ticket.
Parameters
ticket : FailTicket
Ticket of failures of which to unban'

def __unBan(self, ticket, actions=None, log=True):

    if (actions is None):
        unbactions = self._actions
    else:
        unbactions = actions
    ip = ticket.getIP()
    aInfo = self.__getActionInfo(ticket)
    if log:
        logSys.notice('[%s]    Unban    %s', self._jail.name, aInfo['ip'])
    for (name, action) in unbactions.iteritems():
        try:
            if (ticket.restored and getattr(action, 'norestored', False)):
                continue
            logSys.debug('[%s]    action    %r:    unban    %s', self._jail.name, name, ip)
            if (not aInfo.immutable):
                aInfo.reset()
            action.unban(aInfo)
        except Exception as e:
            logSys.error("Failed    to    execute    unban    jail    '%s'    action    '%s'    info    '%r':    %s", self._jail.name, name, aInfo, e, exc_info=(logSys.getEffectiveLevel() <= logging.DEBUG))
