From 26da687dc3525d7ddb5634e104a55160c4069d4b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 14 Apr 2016 13:31:54 -0400 Subject: [PATCH] Do not organize 'databynode' when not node Messages that were not a node (e.g. confluent users) erroneously had data put into 'databynode'. Correct the mistake by omitting the insertion of databynode when the message is clearly not a node related thing. --- confluent_server/confluent/messages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/messages.py b/confluent_server/confluent/messages.py index a4695804..895c9782 100644 --- a/confluent_server/confluent/messages.py +++ b/confluent_server/confluent/messages.py @@ -78,7 +78,8 @@ class ConfluentMessage(object): """Return pythonic representation of the response. Used by httpapi while assembling data prior to json serialization""" - if hasattr(self, 'stripped') and self.stripped: + if ((hasattr(self, 'stripped') and self.stripped) or + (hasattr(self, 'notnode') and self.notnode)): return self.kvpairs return {'databynode': self.kvpairs}