ac5b258b94
- Attempt to load both JSON and YAML formats with YAML parser. JSON is a strict subset of YAML, and any valid JSON must be parsable by YAML parser. - yaml.load is not gerenally safe. Since the data source is a simple data structure lets be more strict and use yaml.safe_load instead. - Do not continue working with parsed data while the file is still open, exit the open file context manager as soon as file is parsed. Change-Id: Ic617e886fd7d1d35b784ee40d836921332ecca1f |
||
---|---|---|
.. | ||
tests | ||
__init__.py | ||
inventory.py | ||
version.py |