diff options
Diffstat (limited to 'lava_server/api.py')
-rw-r--r-- | lava_server/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lava_server/api.py b/lava_server/api.py index b67f1f184..4e8b9603e 100644 --- a/lava_server/api.py +++ b/lava_server/api.py @@ -167,7 +167,7 @@ class LavaSystemAPI(SystemAPI): if os.path.exists(filename): try: with open(filename, 'r') as output: - master = yaml.load(output) + master = yaml.safe_load(output) except yaml.YAMLError as exc: return master if master: @@ -178,7 +178,7 @@ class LavaSystemAPI(SystemAPI): if os.path.exists(filename): try: with open(filename, 'r') as output: - log_config = yaml.load(output) + log_config = yaml.safe_load(output) except yaml.YAMLError as exc: return log_config if log_config: |