[5] allow other template values

pull/1282/head
meisnate12 2 years ago
parent 32764cf136
commit ec4a9bc0c1

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

@ -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>>")

Loading…
Cancel
Save