From de4e935cafed673e03f473db5aba8bd1c7266ce0 Mon Sep 17 00:00:00 2001 From: David Baussart Date: Fri, 15 Sep 2023 20:14:47 +0200 Subject: [PATCH] Fix: using resource_type to be compatible with all node types --- dbt_invoke/properties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]