From e923262b383501dd607c0fb1d9566a0ba5847b6a Mon Sep 17 00:00:00 2001 From: sethho Date: Wed, 10 Apr 2024 13:52:42 -0400 Subject: [PATCH] fixing bug when trying to do regex via parameters --- src/confcom/azext_confcom/template_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/confcom/azext_confcom/template_util.py b/src/confcom/azext_confcom/template_util.py index cc24e8e1214..cde4c1b1b9b 100644 --- a/src/confcom/azext_confcom/template_util.py +++ b/src/confcom/azext_confcom/template_util.py @@ -423,7 +423,7 @@ def replace_params_and_vars(params: dict, vars_dict: dict, attribute): if isinstance(attribute, (int, float, bool)): out = attribute elif isinstance(attribute, str): - out = find_value_in_params_and_vars(params, vars_dict, attribute) + out = find_value_in_params_and_vars(params, vars_dict, attribute, ignore_undefined_parameters=True) param_name = re.finditer(WHOLE_PARAMETER_AND_VARIABLE, attribute) # there should only be one match