aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/views.py
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2021-11-19 12:23:43 -0500
committerSawyer Bergeron <sbergeron@iol.unh.edu>2021-11-19 12:23:43 -0500
commit117e324b3bec0b3e250cc668c99eaf3696b8af00 (patch)
tree959b8bba2655d95d72b9045724ad10b6d64cb976 /src/api/views.py
parent2441da427ca66124b762da98adf5a6f966d40a67 (diff)
Fix yaml load with lib update
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu> Change-Id: I8126507bf64059ff53e3fea9d0b655c4913d4285
Diffstat (limited to 'src/api/views.py')
-rw-r--r--src/api/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/views.py b/src/api/views.py
index a10b3ec..3a82b96 100644
--- a/src/api/views.py
+++ b/src/api/views.py
@@ -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")