From d93346a716bde5237b7cfef5c10ea56e4922b59a Mon Sep 17 00:00:00 2001 From: Adam Hassick Date: Tue, 27 Jul 2021 13:05:16 +0000 Subject: Make C-I serialization work with current netconf rules Signed-off-by: Sawyer Bergeron Change-Id: If967e5e1f268c5bee3ad4496847662cf4de1187c Signed-off-by: Sawyer Bergeron --- src/api/views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/api/views.py') diff --git a/src/api/views.py b/src/api/views.py index 4b887e6..7add23e 100644 --- a/src/api/views.py +++ b/src/api/views.py @@ -248,7 +248,7 @@ def specific_job(request, lab_name="", job_id=""): return JsonResponse(lab_manager.get_job(job_id), safe=False) @csrf_exempt -def resource_cidata(request, lab_name="", job_id="", resource_id=""): +def resource_ci_userdata(request, lab_name="", job_id="", resource_id=""): #lab_token = request.META.get('HTTP_AUTH_TOKEN') #lab_manager = LabManagerTracker.get(lab_name, lab_token) @@ -263,6 +263,10 @@ def resource_cidata(request, lab_name="", job_id="", resource_id=""): return HttpResponse(cifile.serialize(), status=200) +@csrf_exempt +def resource_ci_metadata(request, lab_name="", job_id="", resource_id=""): + return HttpResponse("#cloud-config", status=200) + def new_jobs(request, lab_name=""): lab_token = request.META.get('HTTP_AUTH_TOKEN') -- cgit 1.2.3-korg