api/ticket: move getting cluster name into an eval