mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 19:32:34 +01:00
output_processors: Move variable initialization to __init__
In the case of a failure in the initialization of one output_processor the remaining `initialize` methods may not get called causing variables to not be initialized correctly.
This commit is contained in:
@@ -108,7 +108,8 @@ class SqliteResultProcessor(OutputProcessor):
|
||||
|
||||
]
|
||||
|
||||
def initialize(self, context):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(SqliteResultProcessor, self).__init__(*args, **kwargs)
|
||||
self._last_spec = None
|
||||
self._run_oid = None
|
||||
self._spec_oid = None
|
||||
|
Reference in New Issue
Block a user