From 324a98a41227fd02f7c8e612a1c82988b36054b3 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Tue, 9 Jul 2019 23:49:24 +0200 Subject: [PATCH] suite/run: use yaml.safe_load Signed-off-by: Kyr Shatskyy --- teuthology/suite/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/suite/run.py b/teuthology/suite/run.py index 2921ab4472..921ea7af84 100644 --- a/teuthology/suite/run.py +++ b/teuthology/suite/run.py @@ -383,7 +383,7 @@ class Run(object): raw_yaml = '\n'.join([file(a, 'r').read() for a in fragment_paths]) - parsed_yaml = yaml.load(raw_yaml) + parsed_yaml = yaml.safe_load(raw_yaml) os_type = parsed_yaml.get('os_type') or self.base_config.os_type os_version = parsed_yaml.get('os_version') or self.base_config.os_version exclude_arch = parsed_yaml.get('exclude_arch') -- 2.39.5