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:
committed by
openshift-cherrypick-robot
parent
4501adb277
commit
a726313e76
2
build.py
2
build.py
@@ -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']
|
||||
|
||||
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user