ref: 18cb21ff2e4a60e7094908e4d6113a9d5a086316
parent: df298558a5a5b747288d9656402af85e0ac75a43
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Wed Mar 11 18:21:16 EDT 2020
resources: Add data context to the key in ExecuteAsTemplate Fixes #7046
--- a/resources/resource_transformers/templates/execute_as_template.go
+++ b/resources/resource_transformers/templates/execute_as_template.go
@@ -48,7 +48,7 @@
}
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 {