Avoid CANCELLATION ticket kind for back-to-front tickets.

It's not (yet, see issue 752) allowed and code at the higher
level doesn't know how to deal with it.
pull/753/head
Nathaniel Manista 10 years ago
parent eeef8cd52b
commit f4e3f3f8d6
  1. 3
      src/python/src/grpc/_adapter/rear.py

@ -170,7 +170,8 @@ class RearLink(ticket_interfaces.RearLink, activated.Activated):
if event.status.code is _low.Code.OK:
category = tickets.Kind.COMPLETION
elif event.status.code is _low.Code.CANCELLED:
category = tickets.Kind.CANCELLATION
# TODO(issue 752): Use a CANCELLATION ticket kind here.
category = tickets.Kind.SERVICER_FAILURE
elif event.status.code is _low.Code.EXPIRED:
category = tickets.Kind.EXPIRATION
else:

Loading…
Cancel
Save