2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-09 04:56:12 +00:00

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.
This commit is contained in:
Jarrod Johnson 2016-04-14 13:31:54 -04:00
parent fa3a402708
commit 26da687dc3

View File

@ -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}