diff --git a/dbt_invoke/properties.py b/dbt_invoke/properties.py index fc17ff4..8a29c39 100644 --- a/dbt_invoke/properties.py +++ b/dbt_invoke/properties.py @@ -821,7 +821,7 @@ def _structure_property_file_dict( # when not already present if template_yml and resource_type in template_yml: _apply_template( - property_file_dict['models'][0], template_yml['model'] + property_file_dict[resource_type_plural][0], template_yml[resource_type] ) # Get the sub-dictionaries of each existing column resource_type_plural = _SUPPORTED_RESOURCE_TYPES[resource_type]