From 77b3ca5fa276c19556eccefbdfe7fb104f61d0d0 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 13 Jul 2025 21:20:52 +0200 Subject: [PATCH] Allowed key entries with - --- filter_plugins/get_app_conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter_plugins/get_app_conf.py b/filter_plugins/get_app_conf.py index 9b259da9..1cbe3a88 100644 --- a/filter_plugins/get_app_conf.py +++ b/filter_plugins/get_app_conf.py @@ -12,7 +12,7 @@ class AppConfigKeyError(AnsibleFilterError, ValueError): def get_app_conf(applications, application_id, config_path, strict=True): def access(obj, key, path_trace): - m = re.match(r"^([a-zA-Z0-9_]+)(?:\[(\d+)\])?$", key) + m = re.match(r"^([a-zA-Z0-9_-]+)(?:\[(\d+)\])?$", key) if not m: raise AppConfigKeyError( f"Invalid key format in config_path: '{key}'\n"