Gitiles
Code Review
Sign In
osm.etsi.org
/
osm
/
openvim
/
bd7d70e31f58e207c4228ebac47d659e487632cf
/
.
/
test
/
lib
/
config_parser.py
blob: 1981fce3078574c1b8fa64e9e814e891fcda6e10 [
file
] [
log
] [
blame
]
import
yaml
def
get_config
(
file
):
"""
Parse test config file
:param file:
:return:
"""
with
open
(
file
,
'r'
)
as
stream
:
try
:
return
yaml
.
load
(
stream
)
except
yaml
.
YAMLError
as
exc
:
print
(
exc
)