mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 02:01:16 +00: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:
parent
88a4677434
commit
2d7dc61686
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user