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:
parent
0204bdfe2f
commit
752942483f
@ -132,7 +132,8 @@ def process_file(filename, log):
|
||||
config_text = filename.read_bytes()
|
||||
node = NodeCollector()
|
||||
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
|
||||
exec(compile(config_text, filename, 'exec'), ns)
|
||||
|
Loading…
x
Reference in New Issue
Block a user