Quantum notifications do not include the request_id.

This commit is contained in:
Kiall Mac Innes 2013-07-05 12:07:46 +01:00
parent 943b3cdf5c
commit fe5008991c

View File

@ -5,7 +5,7 @@ from stacktach import image_type
class Notification(object):
def __init__(self, body):
self.body = body
self.request_id = body['_context_request_id']
self.request_id = body.get('_context_request_id', "")
self.payload = body.get('payload', {})
self.state = self.payload.get('state', "")
self.old_state = self.payload.get('old_state', "")