Code Review
/
laas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
2441da4
)
Fix yaml load with lib update
22/73022/1
author
Sawyer Bergeron
<sbergeron@iol.unh.edu>
Fri, 19 Nov 2021 17:23:43 +0000
(12:23 -0500)
committer
Sawyer 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
patch
|
blob
|
history
diff --git
a/src/api/views.py
b/src/api/views.py
index
a10b3ec
..
3a82b96
100644
(file)
--- 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")