mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-27 01:45:32 +00:00
parent
20486c23c5
commit
dbe8d5ed00
@ -6,4 +6,7 @@ import yaml
|
|||||||
path = sys.argv[1]
|
path = sys.argv[1]
|
||||||
if os.path.islink(path):
|
if os.path.islink(path):
|
||||||
exit()
|
exit()
|
||||||
yaml.safe_load(open(path, "r"))
|
|
||||||
|
with open(path, "r") as f:
|
||||||
|
# safe_load_all works for both single and multi-document YAML
|
||||||
|
list(yaml.safe_load_all(f))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user