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:
parent
fa3a402708
commit
26da687dc3
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user