Fix stage_value_overrides
Signed-off-by: Krzysztof Boronski <kboronski@antmicro.com>
This commit is contained in:
parent
5b109f4beb
commit
26843e76ab
|
@ -129,12 +129,17 @@ class ProjectFlowConfig:
|
||||||
return _get_ovs_raw('values', self.flow_cfg, part, stage)
|
return _get_ovs_raw('values', self.flow_cfg, part, stage)
|
||||||
|
|
||||||
def get_stage_value_overrides(self, part: str, stage: str):
|
def get_stage_value_overrides(self, part: str, stage: str):
|
||||||
|
stage_vals_ovds = {}
|
||||||
|
|
||||||
|
vals = self.flow_cfg.get('values')
|
||||||
|
if vals is not None:
|
||||||
|
stage_vals_ovds.update(vals)
|
||||||
stage_cfg = self.flow_cfg[part].get(stage)
|
stage_cfg = self.flow_cfg[part].get(stage)
|
||||||
if stage_cfg is None:
|
if stage_cfg is not None:
|
||||||
return {}
|
vals = stage_cfg.get('values')
|
||||||
stage_vals_ovds = stage_cfg.get('values')
|
if vals is not None:
|
||||||
if stage_vals_ovds is None:
|
stage_vals_ovds.update(vals)
|
||||||
return {}
|
|
||||||
return stage_vals_ovds
|
return stage_vals_ovds
|
||||||
|
|
||||||
def get_dependency_platform_overrides(self, part: str):
|
def get_dependency_platform_overrides(self, part: str):
|
||||||
|
|
Loading…
Reference in New Issue