From f13fc00f3eec28a010f8ee2683e8efc290fbe691 Mon Sep 17 00:00:00 2001 From: Amelia Cordwell Date: Thu, 27 Jul 2017 12:43:12 +1200 Subject: [PATCH] Notifications in views.py now set error correctly While the notifications there are error messages they were not noted down as such previously. Change-Id: If831fdbd6686dd9a42f33828c4bf69f53028e300 --- adjutant/api/v1/views.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/adjutant/api/v1/views.py b/adjutant/api/v1/views.py index 087c123..91029b4 100644 --- a/adjutant/api/v1/views.py +++ b/adjutant/api/v1/views.py @@ -312,7 +312,7 @@ class TaskDetail(APIViewWithLogger): "See task itself for details.") % e], 'task': task.uuid } - create_notification(task, notes) + create_notification(task, notes, error=True) import traceback trace = traceback.format_exc() @@ -412,7 +412,7 @@ class TaskDetail(APIViewWithLogger): "See task itself for details.") % e], 'task': task.uuid } - create_notification(task, notes) + create_notification(task, notes, error=True) import traceback trace = traceback.format_exc() @@ -448,7 +448,7 @@ class TaskDetail(APIViewWithLogger): "itself for details.") % e], 'task': task.uuid } - create_notification(task, notes) + create_notification(task, notes, error=True) import traceback trace = traceback.format_exc() @@ -474,7 +474,7 @@ class TaskDetail(APIViewWithLogger): "itself for details.") % e], 'task': task.uuid } - create_notification(task, notes) + create_notification(task, notes, error=True) import traceback trace = traceback.format_exc() @@ -619,7 +619,7 @@ class TokenList(APIViewWithLogger): ], 'task': task.uuid } - create_notification(task, notes) + create_notification(task, notes, error=True) import traceback trace = traceback.format_exc() @@ -766,7 +766,7 @@ class TokenDetail(APIViewWithLogger): "See task itself for details.") % e], 'task': token.task.uuid } - create_notification(token.task, notes) + create_notification(token.task, notes, error=True) import traceback trace = traceback.format_exc()