1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

fixed YAMLLoadWarning

This commit is contained in:
Gaurav Nelson
2021-04-19 17:01:06 +10:00
committed by openshift-cherrypick-robot
parent 4501adb277
commit a726313e76
2 changed files with 2 additions and 2 deletions

View File

@@ -164,7 +164,7 @@ def parse_build_config(config):
"""
config = os.path.expanduser(config)
with open(config, "r") as f:
data = list(yaml.load_all(f))
data = list(yaml.load_all(f,Loader=yaml.FullLoader))
for book in data:
book_name = book['Name']

View File

@@ -157,7 +157,7 @@ def parse_build_config(config):
"""
config = os.path.expanduser(config)
with open(config, "r") as f:
data = list(yaml.load_all(f))
data = list(yaml.load_all(f,Loader=yaml.FullLoader))
for book in data:
book_name = book['Name']