From fe5008991c429a64360614a53414a170068a078b Mon Sep 17 00:00:00 2001 From: Kiall Mac Innes Date: Fri, 5 Jul 2013 12:07:46 +0100 Subject: [PATCH] Quantum notifications do not include the request_id. --- stacktach/notification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacktach/notification.py b/stacktach/notification.py index ae402b6..edf367e 100644 --- a/stacktach/notification.py +++ b/stacktach/notification.py @@ -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', "")