2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Fix raw integer value support

This commit is contained in:
Jarrod Johnson 2021-12-09 14:08:24 -05:00
parent ad33572290
commit 743f984b3d

View File

@ -185,6 +185,8 @@ class ConfluentMessage(object):
if (isinstance(val, bool) or isinstance(val, bytes) or
isinstance(val, unicode)):
value = str(val)
elif isinstance(val, int):
value = '{0}'.format(int)
elif val is not None and 'value' in val:
value = val['value']
if 'inheritedfrom' in val: