def _close_ticket(obj, eng): ticket_id = obj.extra_data.get(ticket_id_key, "") if not ticket_id: obj.log.error("No ticket ID found!") return if not rt_instance: obj.log.error("No RT instance available. Skipping!") obj.log.info("Was going to close ticket {ticket_id}".format( ticket_id=ticket_id, )) return tickets.resolve_ticket(ticket_id)
def resolve_rt_ticket(endpoint, pid_value, ticket_id): """View to resolve an rt ticket""" tickets.resolve_ticket(ticket_id) return jsonify(success=True)