1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01:00

output_processors/postgresql: Serialize parameters in json

To make it easier to deserialize the data again ensure that the data is
converted to json rather than using the built in string representation.
This commit is contained in:
Marc Bonnici 2018-10-29 16:45:44 +00:00 committed by setrofim
parent 88a4677434
commit 2d7dc61686

View File

@ -28,10 +28,11 @@ except ImportError as e:
from devlib.target import KernelVersion, KernelConfig
import wa
from wa.utils import postgres_convert
from wa import OutputProcessor, Parameter, OutputProcessorError
from wa.utils.types import level
from wa.framework.target.info import CpuInfo
from wa.utils import postgres_convert
from wa.utils.serializer import json
from wa.utils.types import level
class PostgresqlResultProcessor(OutputProcessor):
@ -407,7 +408,7 @@ class PostgresqlResultProcessor(OutputProcessor):
augmentation_id,
resource_getter_id,
parameter,
str(parameter_dict[parameter]),
json.dumps(parameter_dict[parameter]),
str(type(parameter_dict[parameter])),
parameter_type))