# HG changeset patch # User Thierry Florac # Date 1561568178 -7200 # Node ID acaa49debeb6be3aad24ff427a891a32e448e318 # Parent 39d7bddcd81095f3f4aed4441fcdfb03a1e6d9dd Store host in encoded notification diff -r 39d7bddcd810 -r acaa49debeb6 src/pyams_notify/event.py --- a/src/pyams_notify/event.py Wed Jun 26 18:55:47 2019 +0200 +++ b/src/pyams_notify/event.py Wed Jun 26 18:56:18 2019 +0200 @@ -88,7 +88,8 @@ def default(self, obj): if isinstance(obj, Notification): - return {'action': obj.action, + return {'host': obj.request.host, + 'action': obj.action, 'category': obj.category, 'title': obj.title, 'message': obj.message,