Quantum notifications do not include the request_id.
This commit is contained in:
parent
943b3cdf5c
commit
fe5008991c
@ -5,7 +5,7 @@ from stacktach import image_type
|
|||||||
class Notification(object):
|
class Notification(object):
|
||||||
def __init__(self, body):
|
def __init__(self, body):
|
||||||
self.body = 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.payload = body.get('payload', {})
|
||||||
self.state = self.payload.get('state', "")
|
self.state = self.payload.get('state', "")
|
||||||
self.old_state = self.payload.get('old_state', "")
|
self.old_state = self.payload.get('old_state', "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user