From 723b24306bd8326daeaf523388c6cd77582b4199 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Thu, 29 Mar 2018 17:55:36 +0100 Subject: [PATCH] proc/sqlite: fix writing runtime/boot_params Make sure runtime_params and boot_params are to_pod()'d when they get written, as they are obj_dict's that json serializer does not know how to handle otherwise. --- wa/output_processors/sqlite.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wa/output_processors/sqlite.py b/wa/output_processors/sqlite.py index e925e1a3..eb17a56c 100644 --- a/wa/output_processors/sqlite.py +++ b/wa/output_processors/sqlite.py @@ -190,7 +190,8 @@ class SqliteResultProcessor(OutputProcessor): def _update_spec(self, spec): self._last_spec = spec spec_tuple = (spec.id, self._run_oid, spec.iterations, spec.label, spec.workload_name, - json.dumps(spec.boot_parameters), json.dumps(spec.runtime_parameters), + json.dumps(spec.boot_parameters.to_pod()), + json.dumps(spec.runtime_parameters.to_pod()), json.dumps(spec.workload_parameters.to_pod())) with self._open_connecton() as conn: conn.execute('INSERT INTO workload_specs VALUES (?,?,?,?,?,?,?,?)', spec_tuple)