Skip to content

Commit ee9a6cb

Browse files
Fix: using resource_type to be compatible with all node types
1 parent a52b320 commit ee9a6cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbt_invoke/properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ def _structure_property_file_dict(
821821
# when not already present
822822
if template_yml and resource_type in template_yml:
823823
_apply_template(
824-
property_file_dict['models'][0], template_yml['model']
824+
property_file_dict['models'][0], template_yml[resource_type]
825825
)
826826
# Get the sub-dictionaries of each existing column
827827
resource_type_plural = _SUPPORTED_RESOURCE_TYPES[resource_type]

0 commit comments

Comments
 (0)