Commit a705dc05 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

qa_config: Use ganeti.serializer for loading config


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent cf10a26f
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment