config: allow using Prop(...)

Still maps to the same logic, but it might be a bit confusing to
configure properties with prop = Param(...)

Change-Id: I6bde6a0b015095a8b765d98cb2780f0d42de7e6e
Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/34886
Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
Reviewed-by: Alexander Zaft <a.zaft@fz-juelich.de>
This commit is contained in:
Alexander Zaft 2024-10-28 10:46:29 +01:00 committed by Markus Zolliker
parent 0204bdfe2f
commit 752942483f

View File

@ -132,7 +132,8 @@ def process_file(filename, log):
config_text = filename.read_bytes() config_text = filename.read_bytes()
node = NodeCollector() node = NodeCollector()
mods = Collector(Mod) mods = Collector(Mod)
ns = {'Node': node.add, 'Mod': mods.add, 'Param': Param, 'Command': Param, 'Group': Group} ns = {'Node': node.add, 'Mod': mods.add, 'Param': Param,
'Prop': 'Param', 'Command': Param, 'Group': Group}
# pylint: disable=exec-used # pylint: disable=exec-used
exec(compile(config_text, filename, 'exec'), ns) exec(compile(config_text, filename, 'exec'), ns)