aboutsummaryrefslogtreecommitdiff
path: root/lava_scheduler_app/api/devices.py
diff options
context:
space:
mode:
Diffstat (limited to 'lava_scheduler_app/api/devices.py')
-rw-r--r--lava_scheduler_app/api/devices.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lava_scheduler_app/api/devices.py b/lava_scheduler_app/api/devices.py
index fdf1e306b..bb6c6fb5d 100644
--- a/lava_scheduler_app/api/devices.py
+++ b/lava_scheduler_app/api/devices.py
@@ -158,7 +158,7 @@ class SchedulerDevicesAPI(ExposedV2API):
job_ctx = None
if context is not None:
try:
- job_ctx = yaml.load(context)
+ job_ctx = yaml.safe_load(context)
except yaml.YAMLError as exc:
raise xmlrpc.client.Fault(
400, "Job Context '%s' is not valid: %s" % (context, str(exc)))