Fix yaml load with lib update 22/73022/1
authorSawyer Bergeron <sbergeron@iol.unh.edu>
Fri, 19 Nov 2021 17:23:43 +0000 (12:23 -0500)
committerSawyer Bergeron <sbergeron@iol.unh.edu>
Fri, 19 Nov 2021 17:23:43 +0000 (12:23 -0500)
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Change-Id: I8126507bf64059ff53e3fea9d0b655c4913d4285

src/api/views.py

index a10b3ec..3a82b96 100644 (file)
@@ -325,7 +325,7 @@ def resource_ci_userdata_directory(request, lab_name="", job_id="", resource_id=
 
     for f in resource.config.cloud_init_files.order_by("priority").all():
         try:
-            other_dict = yaml.load(f.text)
+            other_dict = yaml.safe_load(f.text)
             if not (type(d) is dict):
                 raise Exception("CI file was valid yaml but was not a dict")