X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=yardstick%2Fcommon%2Futils.py;h=d2be8000ebf7333d637ebe166a22318d1e003e40;hb=ce91fca5ade5ede330bf4c799dbffdf1b4762a9a;hp=e53f4b4160b9f65c1af6a68f618cc71f809afd3a;hpb=0e66fce9e830e2bc188ba3ccb070132fb6bffb4e;p=yardstick.git diff --git a/yardstick/common/utils.py b/yardstick/common/utils.py index e53f4b416..d2be8000e 100644 --- a/yardstick/common/utils.py +++ b/yardstick/common/utils.py @@ -134,7 +134,9 @@ def source_env(env_file): def read_json_from_file(path): with open(path, 'r') as f: - return jsonutils.load(f) + j = f.read() + # don't use jsonutils.load() it conflicts with already decoded input + return jsonutils.loads(j) def write_json_to_file(path, data, mode='w'):