From 5f73d7be8ad793fdc49e1f82b2237ef73fb0e78e Mon Sep 17 00:00:00 2001 From: Vipul Sabhaya Date: Fri, 8 Mar 2013 17:13:59 -0800 Subject: [PATCH] Ensure to_dict() returns auth_tok * ReddwarfContext was changed to defer to the parent's to_dict method. When the context is serialized to amqp, it is known by the key 'auth_token' instead of the expected 'auth_tok' as a side-effect. fixes bug 1152827 Change-Id: I8fcdb2a3eaf8da0dda3c0229b24e32f528353619 --- reddwarf/common/context.py | 1 + 1 file changed, 1 insertion(+) diff --git a/reddwarf/common/context.py b/reddwarf/common/context.py index 07be845ac2..1578fe2b2d 100644 --- a/reddwarf/common/context.py +++ b/reddwarf/common/context.py @@ -50,6 +50,7 @@ class ReddwarfContext(context.RequestContext): parent_dict = super(ReddwarfContext, self).to_dict() parent_dict.update({'limit': self.limit, 'marker': self.marker, + 'auth_tok': parent_dict['auth_token'], }) return parent_dict