bifrost/bifrost
Pavlo Shchelokovskyy ac5b258b94 Improve bifrost inventory module
- 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
2016-12-09 13:28:34 +00:00
..
tests Improve bifrost inventory module 2016-12-09 13:28:34 +00:00
__init__.py Modularize inventory and add initial testing 2015-11-04 18:19:49 -05:00
inventory.py Improve bifrost inventory module 2016-12-09 13:28:34 +00:00
version.py Add bifrost version look-up 2015-12-17 05:10:11 -05:00