From: Kyr Shatskyy Date: Tue, 9 Jul 2019 21:49:24 +0000 (+0200) Subject: suite/run: use yaml.safe_load X-Git-Tag: 1.1.0~234^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=324a98a41227fd02f7c8e612a1c82988b36054b3;p=teuthology.git suite/run: use yaml.safe_load Signed-off-by: Kyr Shatskyy --- 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')