Store host in encoded notification
authorThierry Florac <tflorac@ulthar.net>
Wed, 26 Jun 2019 18:56:18 +0200
changeset 57 acaa49debeb6
parent 56 39d7bddcd810
child 58 678779e9508a
Store host in encoded notification
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,