From 0e2895302b00e63e0021ad96d243f0f0d0200d12 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Tue, 11 Jun 2019 09:22:26 +0200
Subject: [PATCH] ansible-playbooks/general#85 Bug fixes [skip-ci]

---
 templates/alertalerta.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/templates/alertalerta.py b/templates/alertalerta.py
index 7db30a2..6d43855 100755
--- a/templates/alertalerta.py
+++ b/templates/alertalerta.py
@@ -42,15 +42,15 @@ class Alerta:
             'origin': self.args.host,
             'timeout': 86400,
             'environment': self.args.environment,
-            'resource': undefined-%s % time.time(),
-            'event': Exception,
+            'resource': 'undefined-%s' % time.time(),
+            'event': 'Exception',
             'tags': ['environment:%s' % self.args.environment],
-            'group': Application,
-            'severity': critical,
+            'group': 'Application',
+            'severity': 'critical',
             'service': ['www.example.com'],
-            'text': ,
-            'value': ,
-            'rawData': ,
+            'text': '',
+            'value': '',
+            'rawData': '',
         }
         return values
 
-- 
GitLab