]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
TeuthologyOpenStack: use yaml.safe_load
authorKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Mon, 14 Oct 2019 21:48:59 +0000 (23:48 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Mon, 14 Oct 2019 22:11:40 +0000 (00:11 +0200)
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
teuthology/openstack/__init__.py

index ed569c65ab1d8132515c517b82ce7b48d23fc178..56a6373a18ca5de30d0da57367e0142ef4894e2b 100644 (file)
@@ -807,7 +807,7 @@ class TeuthologyOpenStack(OpenStack):
 
         with open(path) as f:
             if path.endswith('.yaml') or path.endswith('.yml'):
-                data = yaml.load(f)
+                data = yaml.safe_load(f)
             elif path.endswith('.json') or path.endswith('.jsn'):
                 data = json.load(f)
             else: