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

fixed YAMLLoadWarning

This commit is contained in:
Gaurav Nelson
2021-04-19 17:01:06 +10:00
parent 233f0a5c77
commit b40c1dfbbf
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']