aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/views.py
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2020-07-27 17:03:45 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-07-27 17:03:45 +0000
commitdc115112cd0de9764ac6d8b4fb2dd1c0fc37bf59 (patch)
tree167dbee9f95b510e56aec5f13bf09cc49406dcea /src/api/views.py
parentb743f3ad85acca17c473d123f715091165969087 (diff)
parent4cc9426d72fe9baa8a4a7f56c6d43493bd011f02 (diff)
Merge "Fix Flake8 Violations"
Diffstat (limited to 'src/api/views.py')
-rw-r--r--src/api/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/views.py b/src/api/views.py
index 4e0d058..75a0db3 100644
--- a/src/api/views.py
+++ b/src/api/views.py
@@ -97,11 +97,13 @@ def lab_status(request, lab_name=""):
return JsonResponse(lab_manager.set_status(request.POST), safe=False)
return JsonResponse(lab_manager.get_status(), safe=False)
+
def lab_users(request, lab_name=""):
lab_token = request.META.get('HTTP_AUTH_TOKEN')
lab_manager = LabManagerTracker.get(lab_name, lab_token)
return HttpResponse(lab_manager.get_users(), content_type="text/plain")
+
def lab_user(request, lab_name="", user_id=-1):
lab_token = request.META.get('HTTP_AUTH_TOKEN')
lab_manager = LabManagerTracker.get(lab_name, lab_token)