From: Parker Berberian Date: Thu, 14 Mar 2019 19:04:32 +0000 (-0400) Subject: Respects lab_token from lab X-Git-Tag: 2.0.99~135 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=6c2668096099f184a6d805de433e0dec3d8b86d0;p=laas.git Respects lab_token from lab Change-Id: I322f876a21d25dc185a6f4930d2f2a5f463e2d24 Signed-off-by: Parker Berberian --- diff --git a/src/api/views.py b/src/api/views.py index a56dcfe..2ae1ac5 100644 --- a/src/api/views.py +++ b/src/api/views.py @@ -101,6 +101,8 @@ def specific_task(request, lab_name="", job_id="", task_id=""): task.status = request.POST.get('status') if 'message' in request.POST: task.message = request.POST.get('message') + if 'lab_token' in request.POST: + task.lab_token = request.POST.get('lab_token') task.save() NotificationHandler.task_updated(task) d = {}