[5] allow other template values

This commit is contained in:
meisnate12 2023-01-18 11:06:23 -05:00
parent 32764cf136
commit ec4a9bc0c1
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
1.18.3-develop4
1.18.3-develop5

View file

@ -906,7 +906,7 @@ class MetadataFile(DataFile):
for template_name in template_names:
if template_name not in self.templates:
raise Failed(f"Config Error: {map_name} template: {template_name} not found")
if any([a in str(self.templates[template_name][0]) for a in ["<<value>>", "<<key>>", f"<<{auto_type}>>"]]):
if any([a in str(self.templates[template_name][0]) for a in ["<<value", "<<key", f"<<{auto_type}"]]):
has_var = True
if not has_var:
raise Failed(f"Config Error: One {map_name} template: {template_names} is required to have the template variable <<value>>")