From 18cb21ff2e4a60e7094908e4d6113a9d5a086316 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 11 Mar 2020 22:21:16 +0100 Subject: [PATCH] resources: Add data context to the key in ExecuteAsTemplate Fixes #7046 --- .../resource_transformers/templates/execute_as_template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/resource_transformers/templates/execute_as_template.go b/resources/resource_transformers/templates/execute_as_template.go index 115b3d04..d6015c17 100644 --- a/resources/resource_transformers/templates/execute_as_template.go +++ b/resources/resource_transformers/templates/execute_as_template.go @@ -48,7 +48,7 @@ type executeAsTemplateTransform struct { } func (t *executeAsTemplateTransform) Key() internal.ResourceTransformationKey { - return internal.NewResourceTransformationKey("execute-as-template", t.targetPath) + return internal.NewResourceTransformationKey("execute-as-template", t.targetPath, t.data) } func (t *executeAsTemplateTransform) Transform(ctx *resources.ResourceTransformationCtx) error { -- 2.30.2