From 752942483f3b48b0748995adf7008d2783ad023b Mon Sep 17 00:00:00 2001 From: Alexander Zaft Date: Mon, 28 Oct 2024 10:46:29 +0100 Subject: [PATCH] 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 Reviewed-by: Alexander Zaft --- frappy/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappy/config.py b/frappy/config.py index 0ef7d83..2a2da9f 100644 --- a/frappy/config.py +++ b/frappy/config.py @@ -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)