From 117e324b3bec0b3e250cc668c99eaf3696b8af00 Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Fri, 19 Nov 2021 12:23:43 -0500 Subject: Fix yaml load with lib update Signed-off-by: Sawyer Bergeron Change-Id: I8126507bf64059ff53e3fea9d0b655c4913d4285 --- src/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api') 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") -- cgit 1.2.3-korg