--- qa/qa_config.py | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/qa/qa_config.py b/qa/qa_config.py index 4afe253..942be8b 100644 --- a/qa/qa_config.py +++ b/qa/qa_config.py @@ -24,7 +24,8 @@ """ -import simplejson +from ganeti import utils +from ganeti import serializer import qa_error @@ -39,11 +40,7 @@ def Load(path): """ global cfg - f = open(path, 'r') - try: - cfg = simplejson.load(f) - finally: - f.close() + cfg = serializer.LoadJson(utils.ReadFile(path)) Validate() -- 1.7.0.4
