From ee9a6cb9b951aedbfacb204c9144b7c95067ab53 Mon Sep 17 00:00:00 2001 From: David Baussart Date: Fri, 15 Sep 2023 20:12:16 +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..5231d3d 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['models'][0], template_yml[resource_type] ) # Get the sub-dictionaries of each existing column resource_type_plural = _SUPPORTED_RESOURCE_TYPES[resource_type]