Merge "Do not use yaml.load(file)"

This commit is contained in:
Zuul 2019-08-13 08:00:52 +00:00 committed by Gerrit Code Review
commit 4dc36ed649
1 changed files with 2 additions and 1 deletions

View File

@ -53,8 +53,9 @@ def get_datapath_layout(path=None):
if path is None:
path = cfg.CONF.df.datapath_layout_path
# See https://msg.pyyaml.org/load
with open(path) as f:
raw_layout = yaml.load(f)
raw_layout = yaml.safe_load(f)
vertices = tuple(
Vertex(