1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 04:21:17 +00:00

framework/output: Fix RunOutput read_config

Fixes trying to deserialize wrong class type.
This commit is contained in:
Marc Bonnici 2017-12-15 14:59:48 +00:00 committed by setrofim
parent 950427f478
commit 6511db1559

View File

@ -5,7 +5,7 @@ from copy import copy
from datetime import datetime
from wa.framework.configuration.core import JobSpec, Status
from wa.framework.configuration.execution import ConfigManager
from wa.framework.configuration.execution import CombinedConfig
from wa.framework.exception import HostError
from wa.framework.run import RunState, RunInfo
from wa.framework.target.info import TargetInfo
@ -181,7 +181,7 @@ class RunOutput(Output):
def read_config(self):
if not os.path.isfile(self.configfile):
return None
return ConfigManager.from_pod(read_pod(self.configfile))
return CombinedConfig.from_pod(read_pod(self.configfile))
def set_target_info(self, ti):
self.target_info = ti