13306: test_with_arvbox.sh can test either python2 or python3
[arvados.git] / sdk / python / arvados / commands / keepdocker.py
index 2d306d516a29652d7a0942e47acc7ef3572414ff..811f096c60808b2033c8123d5330909ee88db816 100644 (file)
@@ -504,7 +504,7 @@ def main(arguments=None, stdout=sys.stdout, install_sig_handlers=True, api=None)
         else:
             json_filename = raw_image_hash + '/json'
         json_file = image_tar.extractfile(image_tar.getmember(json_filename))
-        image_metadata = json.load(json_file)
+        image_metadata = json.loads(json_file.read().decode())
         json_file.close()
         image_tar.close()
         link_base = {'head_uuid': coll_uuid, 'properties': {}}