Message11559

Author birkoff
Recipients birkoff
Date 2017-08-31.14:57:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504191444.13.0.573853826849.issue2622@psf.upfronthosting.co.za>
In-reply-to
Content
Did a dirty hack in pyzabbix\sender.py", line 128, in __repr__

result = json.dumps(self.__dict__)

change to

d = self.__dict__
jsond = {'hostname' : d['host'], 'value' : d['value'], 'key' : d['key']}
result = json.dumps(jsond)

---

But why self.__dict__ is not true dict object?
History
Date User Action Args
2017-08-31 14:57:24birkoffsetmessageid: <1504191444.13.0.573853826849.issue2622@psf.upfronthosting.co.za>
2017-08-31 14:57:24birkoffsetrecipients: + birkoff
2017-08-31 14:57:24birkofflinkissue2622 messages
2017-08-31 14:57:24birkoffcreate