mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-07-19 15:04:23 +02:00
Allowed key entries with -
This commit is contained in:
parent
33d14741e2
commit
77b3ca5fa2
@ -12,7 +12,7 @@ class AppConfigKeyError(AnsibleFilterError, ValueError):
|
|||||||
|
|
||||||
def get_app_conf(applications, application_id, config_path, strict=True):
|
def get_app_conf(applications, application_id, config_path, strict=True):
|
||||||
def access(obj, key, path_trace):
|
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:
|
if not m:
|
||||||
raise AppConfigKeyError(
|
raise AppConfigKeyError(
|
||||||
f"Invalid key format in config_path: '{key}'\n"
|
f"Invalid key format in config_path: '{key}'\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user